pkg resolve: tighten return type, use sortby instead of Sort.By
pkg2: hook new query infrastructure up to old resolve mechanism.
Merge branch 'master' of github.com:JuliaLang/julia