1- Changed bootutil's order of events to verify the image header
2  before checking the image.
3- Added the bootloader state object to the bootutil
4  boot_is_header_valid() function
5