Iterators and postgres event store

WIP

Postgres event store not ready yet