Connecting to XMPP using AsyncTask.