Add api to download deployment script for website.

Fix #808

This whole separate folder thing feels more complicated than it should be. When you have a zip archive, you can directly add the custom script to it, and the .deployment can be created directly from a string without it ever being a file.