XMPP

Rewrite of the client library to be used with the XMPP backend.