Add on_installed / on_uninstalled DSL.