Add support for starting the update application when update is scheduled

Signed-off-by: Simon Busch <morphis@gravedo.de>
Simplify cache management, and cleanup code

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>