Revert the port to the JSON API of FedOAuth as it causes problem with the base client


This reverts commit d1072a6c2621ade489ab6a315aef34c35e94821d.
This reverts commit 816b332c7429da2bc8b57386f4408acea631b264.