ZOOKEEPER-442: need a way to remove watches that are no longer of interest
Review Request #3364 - Created Jan. 4, 2012 and updated
Added APIs to remove watches that are not needed anymore. If the removal completes successfully it is guaranteed that the watcher won't be notified. With the current semantics if two clients remove watches on a znode at the same time the watch is triggered, one could remove it successfully while the other could receive the notification first.
Added unit test that checks client side semantics.