mod_rayo: use channel variables to simplify event routing, fix presence error, fix shutdown error.