Several fixes from ConferenceApp, especially in WebSocket handling.