WIP: Add election framework to master; publish services.

Needs tests still.
Do you think it'll be generally useful? I wasn't sure.