spacecmd: add defattr

to allow building packages on other platforms (SUSE)
spacecmd: cleanup string handling
spacecmd: added softwarechannel_errata functions

added the functions
softwarechannel_errata_diff
softwarechannel_errata_sync