Added doctrine events

Refactored EntityManager to use doctrine events.

This is a proposal to solve lphuberdeau/Neo4j-PHP-OGM#58