Refactored all sharedPreferences access into its own class.
Fix Dropbox login loop
Merge pull request #391 from chuckbjones/fix-dropbox-login-loop

Fix dropbox login loop, and sharedPrefs refactor, closes #278