Merged feature/md5 from @chris

Added changes according to the comment https://github.com/node-xmpp/node-xmpp-server/pull/6#issuecomment-29788711