Add support for environment variables.

Support is limited to retrieving variables from the environment and checking against defaults.