Separated code for notifying listeners out of CohortManager to reduce size of CohortManager.
Updated tests to use new leader elected listeners.