reconnecting to ejabberd if we lose our xmpp connection
Merge pull request #561 from shatterednirvana/httplib-in-xmpp

Reconnecting to ejabberd if we lose our xmpp connection