Hotfix/event manager for resource and controller

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

What's the rationale for changing this?