Register Doctrine event manager as service

Fixes #163 and makes #177 possible