add a preference to prevent writing data to disk

As discussed previously.

Also, bound the Enabled property of some prefs to the state of the
Caputure History pref.