Take first component of X-Forwarded-{Proto,Host}

Apache will add comma separated components to X-Forwarded-{For,Host,Proto} if the header already exists,
i.e. if there are multiple reverse proxies. Apache docs: http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#x-headers

Fixes issue #5