allow asset download by type and name

needed by os-autoinst tests so we can put the name in e.g. REPO_1. For repos we
also need to allow downloading files in subdirs.