Fix bug in ObtainAccessToken

It was trying to JSON parse the response even though the response was URL encoded.
Merge pull request #8 from jackowayed/master

Fix bug in ObtainAccessToken