make download tool pluggable
Merge remote-tracking branch 'upstream/master'