Import Preferences class from luna-sysmgr

Signed-off-by: Simon Busch <morphis@gravedo.de>