Add election framework to master; publish services.

Needs tests still.
The service writing doesn't work right with more than one master, at the moment.  So, either delete this config option or error if user provides other than 1.