Support controlling owner, group, and permissions on the download.

This had been added to our svn version but not the git one. One of the
very problems we are trying to avoid now!