[Git][gajim/python-nbxmpp][master] Refactor XHTML event code