changes in job status logic

moved task todo count to Job class

Start job when getting first task

Master selects task according to tasks left count insted of random order