config: config.NewConfig -> config.New, for brevity
config: fix an error checking bug
common+main: switch to new Config object