implement event listeners from config

This allows us to add event listeners using the configuration as described here:

http://doctrine-orm.readthedocs.org/en/latest/reference/events.html

Configuration can use similar syntax as EventSubscribers.