1) fixed SPI_read_status: added check for flash busy flag in matrix mode 2) fixed SPI_page_program: enable write before writing data to SPI FIFO 3) SPI flash ROM funcs replacement is controlled via menuconfig option
Fixes https://github.com/espressif/esp-idf/issues/80
Avoid bug where a bad status read is copied back to flash and can set lock bits.