Support passing cookie to encoder
Fix example
Merge pull request #14 from eladb/master

Support passing cookie to encoder