Another refactor commit

Move dependency resolution and verification out of the download dialog