Added another getDefaultSharedPreferences method

This version returns a default SharedPreferences
instance and sets the mode.