Add cookie support from command line.
Merge pull request #2 from xkill/master

Add cookie support