Added websocket-based room management. Minor changes for compatibility.