convert repl to use codemirror and have simple history (accessed with Ctrl-Enter)