Add the possibility to use the username/password from the .netrc file
The username and password are now looked for in the following places (in this order):
- command line options
- environment variables
- .netrc file
- getpass module
I also grouped the fallbacks in one place to make this ordering explicit.