Implement first version of the persistence framework.
The first implementation is only file-based and writing is not done with async streams because I did not get it to work but so far it looks nice.
A predis/async based implementation would be trivial now.
Closes #3