XEP-0198 fixes from Ge0rg

Set up connection listener and stream handler early with patched version of smack.
Prevent binding of null resource on reconnect.