Move mode handling out of manager
Move mode handling out of manager

blink1073/jupyter-js-notebook,jupyter/jupyter-js-notebook,jupyter/jupyter-js-notebook,jupyter/jupyter-js-notebook,blink1073/jupyter-js-notebook,blink1073/jupyter-js-notebook,blink1073/jupyter-js-notebook,jupyter/jupyter-js-notebook,blink1073/jupyter-js-notebook,jupyter/jupyter-js-notebook