Extract common spiflash.c into core. Use spiflash.c in sysparam. Use memcpy in spiflash.c insted of hand-written version. Tests for spiflash.c