Fix to work with OpenFire
Remove debug output
Catch login errors and excuse ourselves so as to not freeze the rest of the session.
Since no one in the world appears to use the first field in PLAIN auth, let's not do that either.
Apparently ejabberd is pedantic about requiring the restart after authentication
Merge pull request #4 from CyBeRoni/master

merge fixes from CyBeRoni