Add election framework to master; publish services.

Needs tests still.
Very minor nit:
I'm not sure it is good style to use Uint just to validate that it is positive.  It doesn't accomplish making it < 65536 and it seems to invite some subtle error with uints (perhaps not in this case).