fix for missing 'trust proxy fn'
adding regression test
Merge pull request #208 from krakenjs/trust-proxy-fn-fix

Adding fix and regression test for `trust proxy fn` clobbering