.netrc settings shouldn't blow away explicit auth settings on a session
Add test to verify .netrc authentication behavior.

Here's what should happen:

- If no credentials are given, use netrc if there's a netrc entry.
- If credentials are given, they should override netrc.
Merge pull request #1439 from voberoi/master

Make sure netrc doesn't override any authentication settings explicitly set by the client