Implement MasterElection

"clean up"?