Add timeout before election

Now peers will wait a bit to hear if a better vote arrives before
electing. This allows the election to be a bit more robust.