commands: Refactor nokv parsing and include parse info for most paths

Also fixed a nuisance where commands lacking a command name would be
misinterpreted as CMD_ERROR_UNKNOWN_COMMAND, instead of
CMD_ERROR_MALFORMED_COMMAND, which would be the proper error in this
case.

Signed-off-by: Anton Lofgren <alofgren@op5.com>