[INTERNAL] add Preference related classes

Change-Id: I6afb3615b33e5f8b627367f5468a6b7794f3ede6
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1748
Tested-by: Jenkins CI
Reviewed-by: Holger Schmeisky <google@schmeisky.com>