Complete rewrite to solve some fundamental issues and add some new
features including the ability to automatically index files on save to
reduce the need for manually initiating the indexer. The index is now
saved next to the project file instead of in the first project directory.