adding deploy-to-s3 support and prefixing dynamic urls with api/ for cloudfront