config: allow bools and ints as well
config: move cmdline validation into CmdConfig class
Merge pull request #15 from strib/master

config fixes