Improve indexer.

* Separate writing index files from indexer into IndexerCache class.
* Separate FilenameAndLink into its own file.
* Decrease number of files being created by indexer (that should
increase speed).