Load repository configuration in ucl and fallback on json
Fallback as soon as possible
Properly set the signature type if pubkey is set in pkg.conf
Factorize pkg_repo creation