TRQ-2004. Make it so that svr_dequejob() returns PBSE_BADSTATE for jobs that are in a running state when it is called. It is not legitimate to deque a running job - the job must be taken out of a running state, have its resources de-allocated, and then be dequeued.
Tweak the fix for TRQ-2004 to allow svr_dequejob() to be called on running array template jobs. These don't have any resources allocated so their state is less important. Also, add some more comments.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev