add basic downloader util
fix downloading to support redirects/urls with spaces