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.
Fix for TRQ-1440
TRQ-2006. Fix the elapsed time displaying 00 for hours in all cases.
Merge branch 'master' of https://github.com/adaptivecomputing/torque