Improve SPI flash support

Some little improvements to SPI flash support.
Most importantly, writing to the flash no longer overwrites the status register, removing all write protections.

All add sector erase.