Added election listener class.
Notifies listeners when there's a leader change.