Expose attach entity listeners.

Add support for programmatically attach entity listeners https://github.com/doctrine/doctrine2/pull/850
This can be used to attach listeners to entities from external bundles.