Use generators when returning events from InMemoryPersistence

See https://github.com/event-centric/EventCentric.Core/issues/17

Sorry for https://github.com/event-centric/EventCentric.Core/pull/19  but you can't change the target branches after the PR is sent. I want to keep the base branch for redesign clean.