Added CodeMirror for query editing.

Fixes #59