cleanup exports

since node-xmpp/node-xmpp-core#46 is cleaning up the api, it makes it much easier to pass the api in  index.js.