changed to use a phaser for waiting so as not to spin on the cpu when waiting for a node to become available.
fixed bug related to primary being null.
changed Node to Server and NodeManager to Cluster.