Preliminary persistence interface and tests.