override login/logout_handler_class directly

after ipython/ipython#7191