Added delegate to configure event store
Added default persistence Memory
Added class for contracts
Further refactoring
Added unit test for memory persistence