Redefine the interface to PackagesResolver

Allow it to take dependencies and constraints separately