Hotfix/event manager for resource and controller

* Fixed Resource and Controller event manager.
* Fixed detaching RestParametersListener.

This behavior exists for a reason, and should not be removed; removal is, in fact, a backwards compatibility break.