More work on sidebar items and code refactoring.

Added an installer type section to sidebar which shows packages based on their installer_type key. Added a new appearance section to preferences and added support for hiding and showing different sidebar sections. This commit also includes refactoring for sidebar item creation methods which were moved to MACoreDataManager.