Moved room and user logic to a module for sharing across the servers