librepo: add repo.dump() and test it using ConfigParser and StringIO.