Various major refactorings providing better extensibility and used of existing packaging APIs.