Added HTTP(S) proxy support for requests, including config option. Also replaced urllib with urllib2.