feat(config/settings): updated $config to include globals, defaults and environment settings