Persisting state

@frlobo, the external EEPROM has serious limitations due to its 4KB sector size and its limited write/erase endurance (10,000). Take a look at this topic for more info: