Cached enqueuing split off

The program used to enqueue cached uploads in the previous commit has been
split off into a separate script allowing cached enqueuing of any source
placed on its standard input.

The upload script and download util script have been adjusted to use
this new utility script.