Add support for environment variables.

This adds support for configuration from environment variables.