(TK-33) Rewrite munging tests

Rewrite tests for location header munging to explicitly validate
the munged headers.
(TK-33) Move munging to onResponseSuccess

Move all header munging logic out of filterResponseHeader and
into onResponseSuccess.