added unit tests for testing event manager identifiers for controller created via RestControllerFactory
added unit tests for testing event manager identifiers for resource created via RestControllerFactory
resource event manager is not passed to rest controller
RestParamListener is binded only on RestController
removed wrong test, this situation cannot occure, RestParametersListener can be binded only for RestController instance
added unit tests for attachShared and detachShared for RestParametersListener
fix for detaching listener
Merge pull request #45 from webimpress/hotfix/event_manager_for_resource_and_controller

Hotfix/event manager for resource and controller
[#45] Revert removal of controller check

- Patch originally removed a check against RestController in the
  listener; this re-instates it.
Merge branch 'hotfix/45'

Close #45