Replace CodeMirror with Ace editor

Ace seems much more powerful and easier to use.