$containerTreeData service which keeps a static copy of nested tree based on the selector you provide - this is used to render stateful trees that keep their expanded settings

$getAncestors factory fn that takes a root and a container and returns an array of ancestors for the container up to the root (if found)