set prefs and get prefs

Fixes https://github.com/ether/etherpad-lite/issues/1857