Fixes 265, allow nearest to work in a multi-threaded environment
Fixes #258 Latest needs to handle condition where nodes may not yet have a latency. For example when a node is removed and then added back later.
Fixes #267 Retry write operations on connection failure and master change