Refactor cookie parsing (which fixes yaws cookie parsing)
Normalize cowboy uri return value