Make secure OTA work, also cope with some strangeness in boot sequence after OTA.
Minor other tweaks.
Authored by: dannybackx 2020-11-06
Parent: [r356]
Child: [r358]