Refactor xmpp callbacks (fixes #26).

This patch (giant indentation changes) refactors
all xmpp callbacks to use real binding instead of
the "var self=this" workaround.

Additionally, the presence callback is broken up into
separate functions by type.