Add election framework to master; publish services.

Needs tests still.
I see m.Handler on the left side of my split diff.  On line 216 you need `m := master.New(config)`