fix this.editor reference
use require to load CodeMirror modes

CM's loadmode addon only works if you *don't* load CodeMirror itself with require.
Merge pull request #10 from minrk/cm4

CM 4 fixes