Support proxies in downloader

Fixes #27