Add config setting which preserves host header

Should implement feature request #29