Environment-variable based config

We've added the option to read configuration settings from environment variables (instead of only supporting command-line flags).