Added stub for reading cmdline and cfgfile configuration + tests.