Added epochs usage into ElectionsService, improved EpochManager.