Modified Curator path cache listener

Modified the Curator path cache implementation to
correctly add and remove listeners for a path's
children.