Add cookie support for file download.
Merge pull request #4 from nanliu/cookie

Add cookie support for file download.
Add windows SSL certificate verification work around.