Revert "Adding oauth2 dependencies into extension/"

This reverts commit 3247f649a5868682770747db87e9fa556817e977.
Fixing invalid JSON.
Re-add oauth2 dependencies.
Remove unused code.

And again ... the pretty printer kicks in.