Support proxies, cookies, user-agent string, and requests library

Added support for HTTP proxy, setting User-Agent string, setting initial cookie to prime cookie jar, and use of requests library so cookie handling is done as a browser would.  Also made some PEP8-related fixes.