Added two new environment variables so that an Heroku app will use the custom domain and not the default app name if set.