Updating library to prepare for using IndexedDB by making a factory for
StoryCaches, standardizing the interface.