Starting ACE integration

Getting pretty close to getting the ace editor working. Some bugs to
work out still, and I think there needs to be some API to type stuff
into the shell instead of the editor.