Improved configuration handling. The configuration variables will be defaulted to defaults.json and overridden by any environment variables that are set.