Add buildData method to OAuth2 authenticator.

Extracts the logic to build the data that will be sent to the server into a separate method.
This makes extending from OAuth2 authenticator easier. Possibly only the buildData method must be overridden.