Adds basedir for depth comparison
passes filters to child treeverse instances
fixes the break on non-empty dirs
Uses the Treeverse prototype instead of the helper
Implements the depth filter
Restores the depth tests