refactored qstat.c. Also made it so qstat can
retry if a request fails to ensure more robust
client request. TRQ-2178
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev