Introduce a custom hook for addons

Add ons can hook their init into this hook
Determine if we need to run a cleanup routine