First draft of xmpp support