Check chip id and chip revision before boot app image Closes https://github.com/espressif/esp-idf/issues/4000
Moved structures which describe the app image to separated file. Closes: IDF-597