XMPP-based space control framework