Implement the memory backend

This will probably need a bit more testing but at the moment we just need
to flesh it out.

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>