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.
done (used 0.8ttl for more consistent ownership, even if there are semi-long pauses [or small-ish TTLs])