Unify platforms Mini51 and STM32

eeprom_read_block and eeprom_write_block now return number of bytes
read/written. Simplifies manipulating structures, makes it more robust
and independent of platform word size.