Added support for cursor/scroll/selection tracking in persistence, but not wired up the handlers and restoration from the CodeMirror side.
Starting to wire up CodeMirror for cusor tracking.