prefs: add ability to save prefs later (when idle)

(integrated from trunk branch change aaaeb45 by Todd Whiteman <toddw@activestate.com>)