server.js: make authenticate & register adhere to node conventions
server.js: make authenticate & register adhere to node conventions

callbacks have Error as first parameter

opts allow for more flexibility on auth/reg data

superfeedr/xmpp-server