Class simplifying access to shared preferences