Work on dependency resolution and downloading

Downloads are done one by one for now, as adfly doesn't like multiple downloads at once