Install / uninstall logic and hooks.