Work in progress on inverting construction of eventstore and repo's to allow us to use sql databases that take in a separate transaction object.
little bit of tidy up.