SW-74. Log location improvements and better Windows support.

setup.py-based installation now logs to the system log directory on Linux, and
to the user log directory on Windows.

Reimplement reading requirements.pip to avoid use of pip module, which relied
on the Unix-only pwd module.