workspace: ensure prefs are saved when views are opened/closed
* they are saved when the user goes idle for 5 seconds

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