633 fix download of external files

Shall fix #633 by using the  new location attribute of the reference node and
by using a download method which follows redirects.