Bugfix: Loading and saving of packages was not triggered depending on ap...

...ps lifecycles.