Adds MemoryBackend for repository
Adds EventDispatcher to Repository