Detect https scheme when serving ssl

Running droned with --sslcert enables SSL, but drone enters a redirection loop authenticating a user using Github OAuth endpoints because  `redirect_uri` query parameter generated by `/api/auth/github.com` endpoint "http://" instead of "https://". It doesn't match the redirect_uri set on Github settings for the app, so it fails.