add support for NETRC_PATH environment variable (addresses #7); move credentials.py out of cli subdir because it is used by code other than the cli