put user, xmpp into io middleware instead of socket middleware