Request for granting access token can contain JSON body.

Hi there. I modified the _grantAccessToken_ method a little bit to accept both post and json bodies.