fixed issue #34: Use a .netrc file to store the username and password
merged, and improved, pull request #40 by @shtratos (.netrc support)