Move unpack_url to pip.download

This puts all unpack functions in the same place.
Cherrypicked from a commit of qwcode
Align unpack_http_url to unpack_file_url
pip.download: add docstring and log