Logging improvement

Signed-off-by: Joern Bernhardt <jb@campudus.com>
Status code test fixed

Signed-off-by: Joern Bernhardt <jb@campudus.com>
Improved logging, added tests for setting cookies

Signed-off-by: Joern Bernhardt <jb@campudus.com>