refactor some page-editor.js functions. Make the insert html function more generic and move business logic higher.
now persisting row additions to server