Pkg: edit should return false instead of Nothing (done by add now).
Pkg: add support for os-specific requirements [close #4323, close #4424]

Inspired by @ihnorton's https://github.com/JuliaLang/julia/pull/4424.