Use inner functions to reduce code re-use in Indexer.save_on_disk()
Combine open_writeable_file() and dump_json_to_file()
Merge pull request #4 from JonathanMeans/master

Use inner functions to reduce code re-use in Indexer.save_on_disk()