Clean up code and actually set up a real preferences data store.
Add functions for clearing one type of preference and all types.
Hook up 'clear all' buttons for restrictions and preferences.