esp_https_ota: component refactoring, bugfixes and feature additions See merge request idf/esp-idf!4245