Implement MasterElection

Fair enough. I *did* manage to get through it. :smiley: