Xmpp core auth

Basic login works using Adium (without any authentication backend).  This will need to be refactored, no doubt, but it's a start!