[WIP] Support for multi-file storage

This addresses #98 and the current stage is that we can split to multiple files, but it is still highly experimental and I will try to add the things discussed in #98 .

This is definitely not ready to be merged!