Hey, took the liberty to change some stuff in session tests and added cookie hash function. Check if it is ok..
should only set-cookie when modified
Fixes Issue #568
Set session cookie only when the cookie is updated
Updated tests for cookie based session hash and general refactoring
This requires some work. Gonna take a deeper look and reopen.