Optimizations and bug fix

_allChildren => _getTree. The new method will include the node itself
and not only takes dependencies.
_getThrre returns a List instead of iterator
Fixed bug where not all elements in a tree was returned.
Easier to read :)
Remove old code to find paths to dependencies

Did not work as intended and the new code is now working.