Optimize ctags and others
This patchset significantly reduces the overhead of calls to ctags, and includes a couple of minor optimization. It builds on my previous MR (feature branch 'seafit01_mods').
Change-Id: I76079a1c16cd29474908059ed057da559e4ad901