jstree: updated toolbar for jstree

- appended tree toolbar before jstree-container instead inside body
- updated styling to use toolbar styling
htmlform: updated htmldom to use same declaration as domdocument
cms: updated ui_edit to use refactored xmldb
richtext: added autosaving to rich text editor/simplified code

- added autosaving
- get rid of extra text element, using original text area instead
- fixed a few bugs
- added br forcefully to allowed tags
cms: simplified xxl to generate escaped-html in form elements