Updated with support for playing a game over XMPP.