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

Add cookie support for file download.