Add election framework to master; publish services.

Needs tests still.
Merge error, thanks for catching.