Implement a memory-based Prefs class. am: a0284ace42
am: c0273f4fc4

Change-Id: I3a134bb5255ed10c537c3246e3300a0d262c98e5