Initial CodeMirror support.

Deleting is currently buggy, but this should be a good start.