Adding support for passing along headers when downloading tar file

This is for instance useful when the file is not publicly available, but needs Authentication headers