Moved datastore operations into 'filestore' source. Api tweaked to use
promises.