Fixes #29: Implement XFF parsing so it works in nginx

This reworks the fix so that the repsheet data structure is not impacted.