CURATOR-145: TreeCache should implement maxDepth

Depends on CURATOR-144
added