Repopulate ~/.netrc auth.
Better layout for checking.
Respect trust_env on redirect.
Merge pull request #1892 from Lukasa/netrcauth

Repopulate ~/.netrc auth.