Add switches to prevent running installation/deinstallation scripts

This set of commits bring back he ability to avoid running pre/post installation/deinstallation scripts.

It uses the (inconsistent) flags of the `pkg_*` tools for backward compatibility.