Refactor: libcrmcommon: functionize XML difference calculation better
Functionize more parts of __xml_diff_object() to make it easier to follow.
Additionally, add a not-really-needed assertion that will hopefully make
static analysis happy, and downgrade "moved attribute/child" logs from info to
trace to be consistent with other messages.