Only redirect Plinth requests to HTTPS.

Previously, we redirected all requests to HTTPS.  Now, we redirect
only when the user tries to connect to the Plinth site.
Merge upstream.