Use callback functions instead of listener classes for the events in the xmpp modules