Changed position of cookies.set
only set the cookie when sessin was modified

* use `buffer-crc32` to gen the hash
* only when session was changed, reset cookie and session
get session error, throw it
Merge pull request #3 from dead-horse/fix-cookie

Fix cookie