Add proxy support to the download_cache

Note also that the request object needs to contain just the request
path and not the full URL.

This is a rewrite of commit f891842, which no longer applies to v2.0
of the buildpack.

Ref http://bugs.activestate.com/show_bug.cgi?id=102334