EZP-22061: Refactored REST listeners

Splitted in 3 listeners, all tested:
- request
- response
- csrf