Fixing many bugs in XMPPStreamManagement.
Merge branch 'master' of github.com:robbiehanson/XMPPFramework