fixes #3120 Replace CodeMirror with Ace

Replaced code mirror with ace, changed the files where codemirror is used, did the basic testing.