CURATOR-145: TreeCache should implement maxDepth

Depends on CURATOR-144
Might be nice to have a constant for 0 that means one level or even a specialized method for setOneLevel().