Refactor CodeMirrorAdapter

Use a new approach to converting CodeMirror change objects to
TextOperations, using the new `removed` property on change objects that
contains the deleted text (works only with the current trunk of
CodeMirror). Thanks to @mikelehen for pointing this out to me!