Complete Pkg.Resolve modularity + fixes

fixes:
1) fix check_repository (also add julia_version argument)
2) fix pkgs/vers/deps gathering and filtering