trq-2204 Add job new newjobs array before replying.
trq-2204 Added unit tests.
Merge branch 'master' of https://github.com/adaptivecomputing/torque
Fixed unit tests