Added an extra parameter to OAuth2::grantAccessToken() to allow the method to return the token instead of sending http response and stop execution