Added persistent_ram and ram_console support (CastagnaIT)