trq-2061 When deleting a job remove any 'afterany' dependency another job has on it.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
trq-2061 added unit tests for new functions and fixed a broken unit test.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev