Sleekxmpp port of err

This is the working branch for sleekxmpp