Added class and test for saving user defaults to mongo.