Connect gloox (XMPP lib) to application