MemoryLeak: do not keep finished jobs state in memory
- SchedulerStateImpl : use a maximum size for finished jobs. As test is using the getState method a lot, it is necessary to keep some retro-compatibility. The default number of jobs kept in SchedulerStateImpl is 1000, but can be configured through a JVM property. - SchedulerFrontendState : delete job from jobsMap when the job is finished.