Fix Bug 952260, do not show switch tree if only one tree
Merge in fix for Switch Tree menu showing when there's only one tree. Close #222.
Correct some uses of now-undefined CSS classes.
DRY a little more in htmlify().
Simplify a little JS.
merging ui into grunt integration for small js change