Update API for node-xmpp-server

* Expose internals via `module.exports`
* Update `sasl-test.js` to use these new exports
* Use _id_ property as __name__ will often get overwritten with name of function