Pass test env vars through to Docker

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Prevent race conditions in Service#each_update

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Implement Discover::Service#leader

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Implement Discover::Service#each_leader

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Implement Discover::Client#register_and_standby

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #11 from flynn/leader-election

Leader election