Add election framework to master; publish services.

Needs tests still.
Yeah, I did not investigate further after solving my immediate problem.