add support for persistence config (and serialization)
Merge branch 'competing' of https://github.com/eventstore/eventstore into competing