Add stubs implementing data storage API

Add two modules containing stub implementations of the new data
storage API for PostgreSQL and in-memory.