Add globals property to the environments.
Add rules per environments to config.
Add tests to config load order: base, env, user.
Merge pull request #391 from albertosantini/issue-380

Fixes #380