removed templates in an effort to solve gzipping. Modified config to favor environment variables.