CMS tree integration

Adds features and fixes needed to make jsTree work.