big changes, see comments

big changes, add EEPROM saving, dont use socket server anymore, only check current when not reading