Add election framework to master; publish services.

Needs tests still.
Confused-- I think you're referring to a change that I'm not based on top of yet?