Preliminary update to support CM v3.01 and later

In v3.01 addons were moved into a dedicated directory. This commit supports all versions of CodeMirror from v2.0 to v3.12