Implementation of generic OAuth2 class.
Updated several other classes as well.