Load configuration based on environment

This adds support for defining config options for multiple environments.