Redo failsafe eeprom routines.
Some optimizations on codesize i.e. "static inline" for funcs used once.