DRY up URLs

As a related change, this feature also adds the ability to fetch static resources from git from a different branch, by setting the `TEMPLATE_BRANCH` environment variable. (defaults to master)