Automatic firmware upgrade/backup/restore with packages

Hi,

This PR adds automatic firmware update with packages, i'd like some feedback.
(which also includes backup and restore with packages, offline and online)
Please take a look at the code and let me know what you think.

Whatsnew:

Code: