Support generic repositories

Changed generate_file to use a generic URLs parameter
with a type key, instead of multple URL parameters.