Break the core of the tree code down into a separate directive and
start separating out the window display. Next step: ng-transclude in the
details of showing entries.