Fix http/https mismatch when using an http(s) proxy

Reuse a well-tested library from another project. Ripe for a gem.
Bump tiny version for proxy fix.
Merge pull request #4 from Lookingglass/robb-fix-http-proxy

Fix http/https scheme mismatch when using an http(s) proxy