Referer tracking

This PR adds a system to log referer headers when we think they have an unexpected value