Implement MasterElection

Fair enough.