Undo separate from sharejs in ace ajax

Fixes for https://github.com/codio/client/issues/178
Connected with https://github.com/codio/ace/pull/2
And https://github.com/codio/client/pull/202