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-2152 reallocated a freed pointer to prevent a double free.
Merge pull request #162 from jbarber/master

Set trqauthd to connect to all valid addresses/protocols
Fix a problem with the unit test for trq_auth.c
Fixed a problem where trqauthd would cause segfault on exiting
and also would not load if pbs_server were not running.

Updated unit tests.

TRQ-1247
Merge branch 'master' of https://github.com/adaptivecomputing/torque
Fix a coverity bug introduced by the pull request I merged in.
Merge branch 'master' of https://github.com/adaptivecomputing/torque
fixed bugs in unit tests for Libifl trq_auth
Made it so unit test for net_cache would run faster
Merge remote-tracking branch 'upstream/master' into pbs_server_port_parse_fix