CMS7-8161: do not render children of collapsed tree nodes

Also use angular-ui-tree version in which issue #186 is fixed.

Backport of CMS7 8138
(cherry picked from commit 145147b471556b2e207d935643554a1f2fe1f4f7)