Add election framework to master; publish services.

Needs tests still.
Empirically, because it was crashing in pkg/registry/service/rest.go otherwise.