Upgrade to CodeMirror 3.1