Extract filestore out into its own module.