Pretty print the html to help debugging
Use codemirror to edit the queries
Prepare for completions in CodeMirror

I'm not going to really enable it for now as it requires a lot of work
to make into a sensible completion service.