XMPP-over-WebSocket connection manager