Configuration System Refactor - Step 3

Refactor all classes, tests and fixtures which use configurations.
Add support for environment variables.