Fix retry logic when PBSAPITIMEOUT is set

Previously, when PBSAPITIMEOUT was set, failures were not correctly
reported.  The functions would move on to DIS and then get end-of-
file messages:
$ PBSAPITIMEOUT=3 /opt/torque/default/bin/qstat @down-server
qstat: End of File

Now, it properly handles bad return codes and gives a useful
message:
$ PBSAPITIMEOUT=3 /opt/torque/default/bin/qstat @down-server
Error communicating with down-server(192.168.1.10)
Communication failure.
qstat: cannot connect to server down-server (errno=15085) Time out
Fix qstat -u <username>

Commit 556c7ca03636248bdd1582bb5eeffb6e363da930 broke
qstat -u <user>.  This one-liner fixes that.
Only send needed data over the wire for qstat (part 1)

By default, qstat does not specify the attributes it needs.  The
server sends all attribute data over the wire.  On systems with a
large number of jobs OR a large number of nodes, this can be a huge
amount of un-needed data.  Avoid this if possible.
Only send needed data over the wire for qstat (part 2)

Added a new batch request SelStatAttr. This is the same as SelStat
but it includes an attrl to limit what attributes need to be
returned.  qstat is currently the only client that uses this.  If
a new client is talking to an old server, it will fall back to
using SelStat.
Some clerical changes. Remove two bits of commented out code, add a space.
Merge branch 'master' of https://github.com/adaptivecomputing/torque
Correct runlevel string for RHEL compatibility.  Patch from Florian La Roche <laroche@redhat.com>
Fix a compile error and a bunch of unit test issues.
Merge branch 'master' of https://github.com/adaptivecomputing/torque
Remove a call to getnameinfo() whose result is ignored and never used.
Merge pull request #129 from mattaezell/connect_retry_fail

Fix retry logic when PBSAPITIMEOUT is set
Merge pull request #134 from kainx/master

Fix runlevels
TRQ-1709. For -lgpus=X... the ... was being appended to the gres, so it looked like Resource_List.gres=gpus:X... instead of simply .gres=gpus:X. This is now fixed.
Merge branch 'master' of https://github.com/adaptivecomputing/torque
Fix another error in a unit test.
Fix an infinite loop due to the accidental re-use of a loop parameter.
Merge pull request #131 from mattaezell/qstat_attrs

Have qstat request specific attributes
TRQ-1824 - updated pbs_server usage and man page
Merge branch 'master' of https://github.com/adaptivecomputing/torque
Fix the order of operations in checking joining jobs.