Implemented new config via require

This pull request is incomplete, for review only.

TODO:
* fix tests
* update all configs to the new format
* implement DLS for definePreprocessor, defineLauncher (separete feature?)