Add ability to download repositories to local and remote caches