Implement MasterElection

I think I'd like something a bit more verbose, like ```IsMasterWithLock()```?