Treeportlet: Implement deferred tree rendering.

When having a large repository-tree with more than 2000 objects,
the three portlet slows down every site reload. To avoid this performance issue
we render the the tree deferred.