Changes to fix #1816 - split up task for installing apps, use a custom
Tunable for the app replacement prompt
Added error logging