Use a proper data type for Request
Move code out of Main.hs to facilitate testing (+ remove some dead code)
Don't pass sproxy cookie to the backend (fixes #1)
Simplify cookie parsing