Refactoring the TreeBehavior to have less repetitive code
Cleaning up some code
Strating to implement removeFromTree
Fixed removing a middle node from the tree
Added test for removing a root from the tree
There was no use for _getMin, so removing it
Only accepting entity for custom methods in the TreeBehavior.
Implemented a non-recursive version of moveDown
Implemented a non-recursive version of moveUp
Fixed CS issues
Removing dead code
Adding typehints
Nitpick
Removing duplication
Merge pull request #3241 from cakephp/3.0-tree-behavior

3.0 tree behavior pt. 2