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
Merge pull request #162 from jbarber/master

Set trqauthd to connect to all valid addresses/protocols