Set wsgi url_scheme to https if configured for SSL

This probably needs a unit test or two, but is a simple fix for the wsgi environment when SSL is used.