Refactor: libcrmcommon: XML best practices in HTML output functions
Use existing Pacemaker wrappers for clarity and so that private data
allocation and deallocation can be refactored in an upcoming commit.
Also move xmlAddPrevSibling() earlier for readability.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>