ram: Rename to memory
memory: Add a thin persistence layer
memory: Add a domain function