Threaded xmpp stream processing