Added a better configuration management

Now config can vary from development / test / production.
Tests are run in the test configuration