Add some basic support for deploying to the thin webserver.

Fixes #1647