Add election framework to master; publish services.

Needs tests still.
remove above comment.