Refactor: libcrmcommon: Functionize xml_log_patchset_header()
The header is part of the patchset for both patch formats, so log it via
function call from within the v1 and v2 loggers instead of from the
setup code.
Also use a switch in xml_log_patchset() and catch bad formats.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>