Refactoring SchedulerCore (restartShards)

Bugs closed: AURORA-94

Reviewed at https://reviews.apache.org/r/23834/