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

Add cookie support for file download.
added some very basic puppet unit tests