Add totalCollections for ODM and move all Hal properties to the listener

This commit contains:
- Query Interface adjustment
- TotalCollection for ODM
- Bugfix: wrong event in DoctrineResource
- Moved all Hal attributes / values to the listener. This makes code a little bit shorter.

(started from commits on #9)