Refactored internal message routing.
Extended to manage several rooms.