Redirect away from https: and www.; serve app from dist/.

I've updated the first gear manually with this, and it works. I may manually update the rest.