WIP: Add election framework to master; publish services.

Needs tests still.