Support loading configuration from environment variables, add support for roles.