Add crude edit support, including a codemirror editor

Note the ui kinda goes wacky when you save, and ctrl+s only works if
the page has focus (not say the editor).

wip