Adds depth management options
Fixes code and tests for events and callbacks on directories
Merges master
Better depth coverage
Stops if the depth has been reached