Add support for using scheme from X-Forwared-Proto in OpenId provider

This adds basic support for extracting the HTTP scheme from the X-Forwared-Proto header if available in the OpenID realm and redirect parameters.