Pulled out the OAuth logic to separate code
Changed a bunch of strings to real objects