store two copies of config in eeprom and track stats

- store two copies, compare them on bootup, recover corrupted version if needed
- track stats for corruption
minor bug fix for eeprom processing on startup.