Fixes a few more tests
Adds a cookie delegating handler, fixes tests.
Fixes several more unit tests. 55 left