[ERT-448] Make createNewConfig static so that it can be called.
Added testsuite-case for createNewConfig.
Merge pull request #343 from perroe/ert_448_ert_new_config_crash

[ERT-448] Fix crash when starting gert with new config file.