Enable undo and redo

If we create the editor with the Editor constructor,
we're missing something that enables the undo and redo
functions inside Ace.

If we instantiate using ace.editor(), though, it all
works fine. So, let's do it that way.