Automatic deployment of branches

With these changes, new branches are automatically deployed to docs-testb.cloudant.com/$branch. Also fixes some quoting bugs in the deployment scripts.