move the restore config / payload generation to a class
Merge pull request #113 from dimagi/ota-restore-caching

move the restore config / payload generation to a class