User authentication

Authentication mechanism requires two parameter err and user - https://github.com/node-xmpp/node-xmpp-server/blob/master/lib/authentication/mechanism.js
When err is null user must not be null for successful authentication.
Merge pull request #12 from srajbr/patch-1

User authentication