client,xml: move xml helper functions to library code
client,util: move sprint helper functions to library code
Merge pull request #437 from kmroz/util-cleanup

util,xml: move useful functions to libwicked