Variables and templates

Support config variables, variable templates and variables from the environment