Upgrade CodeMirror

closes #2108

- upgrade to 4.0.1
- requires removing the deprecated setLine method