Refactoring: classes Job and TaskCollection created.
Refactoring: new methods added to class TaskCollection
Refactoring: constructor, dispatchTask and stopTask refactored.
Refactoring: getJobs and slots refactored.
Refactoring: sendParamsToPeer and getNumberOfJobsToAssign refactored.
Refactoring: truToAssignAvailableJobs refactored.