fixed planner crash on plan repair

* fixed bug with same agent applied multiple times to same job

* lots and lots of debug code
Merge branch 'Release/MileStone3/debug' of https://github.com/srnjcbsn/Beduin into Release/MileStone3/debug