OAuth2 authentication support

Implements OAuth 2.0 authentication via the
mailimap_oauth2_authenticate function.