Add input and output rpm trigger support

This adds several rpm-specific flags:

--before-install
--after-install
--before-uninstall
--after-target-uninstall