Added basic xmpp chat functionality