Add the ability to customize the error handling in XMPP via callback
Add more debugging options