Added first version of endpoints for loading and saving user preferences #898