Fixed bad use of ruby.
More robust ZK watcher handling.
Heartbeat: use `connected?` rather than `ping?`.
Resolve race condition with `ping?`.