WIP: Add a utility for doing master election via etcd.

Sending this for comment, will work on unit tests once people are happy with the code.
Should this be some multiple of the ttl? Say, .95x ttl? Otherwise mastership is going to flop around.