Site preferences

Fixes and tests for an admin updating site preferences.