hwrt/download.py: moved download.py to a subcommand of hwrt; factored some common code out