Extract logged response writer from log to the response package
Extract usernameFromReq method
Add test that changing the request struct doesn't affect logging
Extract struct from a bunch of local vars
Reinstate X-Forwarded-For and StripQuery functionality in logger
Comments
Clarify names/comments