Cmd line params parsing and more config validation.