EZP-22061: Refactored REST listeners

Splitted in 3 listeners, all tested:
- request
- response
- csrf
EZP-22061: Refactored CsrfListener with protected methods
EZP-22061: Fixed strict error
Merge pull request #654 from ezsystems/story/EZP-22061-refactor_rest_event_listeners

EZP-22061: Refactored REST listeners