Implement read of infopage, nvm and firmware from file

Now we can also write the firmware, nvram and infopage areas. Also add a reset command to reset the MCU.