template_upload script changes

This is a work-in-progress PR following the updates of template upload scripts:

template_upload_all
template_upload_rhevm
template_upload_rhos
template_upload_vsphere