Moved the logging initialization code.
Changed implementation for netrc path on Windows.

On Windows we now try several paths according to different
environment variables in order of importance; this allows to
preserve the standard "Unixen" behaviour (trying $HOME/.netrc first)
but also allows for more "Windowsy" locations (such as
$USERPROFILE/_netrc, which some other programs like git might favor).
Merge pull request #77 from TheEpsylon/netrc-windows

Fix searching for the location of netrc files on Windows.