abstract CodeMirror editor init
use angular's $http instead of jQuery for AJAX calls
-> avoids need for calling $apply()
update angular & jquery, cleanup
remove sugar.js (use underscore), cleanup