PHP filestore abstraction