reimplement urlopen() on top of librepo

cosmetic changes, sets the user-agent header