Implement MasterElection

Prime the pump, as it were; if I don't do this then there may not be any active- or pending-events yet (since we're racing the main thread), and so `DispatchOnce()` will blow up when `event_base_loop()` returns 1 (indicating that there's nowt to do.)