Add election framework to master; publish services.

Needs tests still.
Explain that excess endpoints in particular could be the case when a master is stopped and a new one started.