Fixed a user-room mapping bug.

Fixed a user-room mapping bug - > should be merged with the main branch.
Implemented get messages request handler, partially implemented pull request history.