Socket hb

fix Issue #732, worker and supervisor heartbeat to nimbus using socket instead of write zookeeper node.