Various cleanups and warning fixes.

Particularly interesting is the change to ZooKeeperUpdatingPersistentDirectory.
I have no idea if that ever worked, as if it ever removed a node, it would get
a ConcurrentModificationException.
Merge pull request #211 from spotify/drewc/cleanups

Various cleanups and warning fixes.