Implement basic support for user/system installed packages and local packages.

Also removed a lot of (caught) exceptions. The installation/uninstallation code was moved and modified to the new package manager, which is now responsible for all locally installed packages.