CodeMirror v4 migration

Hoping I don't mess anything up but to remove a deprecation notice i updated the main.js to load CodeMirror as a module.

* https://github.com/adobe/brackets/wiki/Brackets-CodeMirror-v4-Migration-Guide