Forward user info

This adds forwarding of some information from the original request, such as the original user agent and the user address via the X-Forwarded-For header. Also adds the application/json content type.