added tree to form
added measure grouping UI
updated jstree.js
refactored tree to be independent library