Preliminary XMPP support

Just the skeleton code structure added.