Class to download files.
Rough implementation of download loop