an event store written in scala