pkg2: refactor requirements processing to all reuse of parsing.
Merge branch 'master' of github.com:JuliaLang/julia