Implement MasterElection

Good call, done