fixed deadlocks by setting cookie directly on headers instead of creating a response
Merge pull request #2 from pelargir/master

Fixed random deadlocks