Adding Entity Manager and Event components

This PR simplifies the changes proposed in #60, but does not try to move entities and their associated repositories into the component namespace.

Parameterisation of the services has not been done, but issue #64 has highlighted the need to parameterise all service classes across the app.