First stage of improved error handling

Add errror module with error code enumeration and error domains.
Add GError** as param to some functions in xml_dump and repomd modules.

This improved interface is aimed to better (more informative and verbose)
error messages for programs using this library and createrepo_c python
bindings.