Move CM global includes to use require

Also cleans up CodeMirror globals in various jslint directives

To @redmunds.