Upgrading CodeMirror definitions, with features from TS 0.9.x.
Small tuning to CodeMirror definitions.
Updates to the code following CodeMirror definitions upgrade.