Add election framework to master; publish services.

Needs tests still.
You did this in the flag descriptions.  Ok.