update CodeMirror to 3.21

and require.js to 2.1.10

closes #4812
Merge pull request #4819 from minrk/cm3.21

update CodeMirror to 3.21