Fixes for the install-queue handling
Two parts:
- for PackageKit, to allow install of the apps in the
queued
state. - for the plugin-loader, to properly remove the apps from the pending queue and from the
install-queue
file when the installation is over (successful or not) - the removal failed, because another part of the code already removed the app from the in-memory array, which resulted in no file update