Robustify koji

Take the opportunity and do some housekeeping with the utils_koji library, and add an option to make the koji download code more resilient to intermittent network failures.