Reduce the frequency in which the main loop runs

Prior to the issue_Drequest refactoring, the main loop would wait for
network connections over the wire.  Currently, it runs and sleeps for
100 microseconds before starting over.  Refactor so it does less
checking each iteration and sleep longer before starting the next
iteration.
TRQ-1614. Make sure we don't start a poll_job task for jobs that aren't running and make sure it doesn't get started for array summary jobs.
TRQ-1604. Get enable-drmaa compiling with g++
Merge https://github.com/adaptivecomputing/torque
TRQ-1465. Multinode jobs when not running mpi or pbsdsh would get stuck
in a running state. This fixes that problem.
Merge pull request #47 from actorquedeveloper/master

merge drmaa compile issue, multinode job hang plus others
Manual merge fix for the connection stuff when switched to g++ from the 4.2.0 branch. TRQ-1425 was piggy-tailed to report this behavior.
TRQ-1613. Prevent environment variables from leaking due to incorrectly modifying the environment.
Merge https://github.com/actorquedeveloper/torque
fix for TRQ-1597. Job arrays needed to have the
ji_commit_done flag set in job_clone_wt. Also
fixed deadlock in queue_route where jobs with
ji_commit_done set to 0 were not unlocked.
Merged changes from the 4.2.0 branch to fix another issue found by QA regression tests from trq-1425 --had to split the client and server settings for a socket.
Changed on one more place where SO_REUSEADDR must be used. (Merge from 4.2.0 branch for a found in regression test.
Fix an error in passing mppdepth= in the ALPS request. It should be depth=
Merge https://github.com/actorquedeveloper/torque
Fix some more coverity issues. Various memory leaks and the like.
Fix some more coverity complaints.
Clean up some more coverity issues.
And some more coverity issues.
Fix a few more coverity issues around potential buffer overflows.
Previous to this fix a single job array would not route
to multiple queues  if max queuable limits were set
on a queue. TRQ-1597