Implement SRAM saving

Will allow saving for certain games, but some use EEPROMs and FLASH
memory too, which will have to be added.