add .netrc parsing

Does what it says on the tin.