Set trqauthd to connect to all valid addresses/protocols

Modifies trq_simple_connect() so it tries all entries returned by
getaddrinfo() instead of giving up if the connection fails. For example,
given an /etc/hosts of:
127.0.0.1 localhost
::1       localhost

trqauthd will now try both the IPv6 and IPv4 addresses.
off-by-one allocation caused trqauthd segfault
TRQ-2133: fixed compiling errors.
Resolve a conflict with the merge for net_cache
TRQ-2127 Put needed break back in and added curly braces to make it correct and for clarity.
Fixed broken unit test for net_cache.c

Conflicts:

	src/lib/Libnet/test/net_cache/test_net_cache.c
TRQ-2111. Add a failsafe to svr_setjobstate() ensuring that jobs in a queued state never will hold node resources.
Changed return value of tcp_connect_sockaddr from 0 to 10 so
we do not close stdout.
Fixed a regression core dump.
TRQ-911 - Define PBS_NUM_NODES, PBS_NUM_PPN and PBS_NP environment
variables for prologue and epilogue scripts. Created new library
function to create environment variables. Refactored other sections
of code to use the new function.

Conflicts:

	src/lib/Libutils/test/Makefile.am
TRQ-2101 Added the resources used item back into  messages mailed out by pbs_server.
trq-2143 Checked for a null pointer.
Updated gitignore file.
Fixed a Jenkins build issue.
TRQ-1142: change job files (.JB, .AR, *.TA) to xml.
Added a timeout on the net_cache test.
Fixed a number of build errors.
Fixed coverity issues: CID 1063157 & CID 1063156.
Merge branch 'master' of https://github.com/adaptivecomputing/torque
Fixed compiling error.