Fixed a user-room mapping bug. Implemented get messages request handler,
partially implemented pull request history.