Add election framework to master; publish services.

Needs tests still.
Add a comment that this is trying to find the first non-loopback network interface.