Large scale refactor/rewrite of the AddonManager, adding cleaner separation between repository addons and installed ones