Added rendering and editing for preferences (endpoint to load and save still missing) #898