sdk: add a prefs wrapper, for require use

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