Implement MasterElection

Bizarro, fixed.