Use common interfaces for typehinting

In favor of testing and the possibility to inject custom EntityManager services, I changes the typehinting to ```Doctrine\Common\Persistence\ObjectManager``` and ```\Doctrine\Common\Persistence\ObjectRepository```.

This would also allow to use Neo4j as backend which I'm working on. Thoughts?