Rename resolve to encode function
Write create scope function in editor controller
Convert editorCtrl to use ngResource objects
Refactor save into save and create functions
Fix editorctrl tests to match new ngResource way
Move dist to htdocs/editor
Fix e2e tests