Use curl instead of net/http

To speed up download and upload, use `curl` instead of `Net::HTTP`.

Also adds flexibility for dealing with other kinds of commands than bundler.