Download dependencies using urllib2.

We used to shell out to `curl` to download dependencies.