Implement Pkg.update hook

If your package contains a `deps/update.jl` file, it will now be executed
on Pkg.update().
Merge pull request #5783 from JuliaLang/kf/updatehook

Implement Pkg.update hook