tests: Added IMAP OAuth 2.0 authentication with initial response test
test922: Corrected title to match other OAuth 2.0 tests
RELEASE-NOTES: Synced with bde901ad89a6f1
test825: Corrected typo from commit b29217d0d682d4
configure: Fix test with -Werror=implicit-function-declaration

The ipv6 auto-detect test in configure returns a false negative when
CFLAGS contains -Werror=implicit-function-declaration. (I have been
using this flag to detect code issues that would result in SEGVs on
x86_64-cygwin.)

Patch-by: Yaakov Selkowitz
Bug: http://curl.haxx.se/bug/view.cgi?id=1304
connect: Return the socket descriptor even on fail

singleipconnect() did not return the open socket descriptor on some
errors, thereby sometimes causing a socket leak. This patch ensures
the socket is always returned.
connect: Forgot to correct line endings before push in commit ed1662c374361a
smtp: Moved EHLO response handling to smtp_state_ehlo_resp()

Similar to the processing of untagged CAPABILITY responses in IMAP moved
the processing of multiline EHLO responses to smtp_state_ehlo_resp() and
introduced an internal response code of one to differentiate a multiline
continuation from the end of command. This also allows for the separate
processing of multiline responses from commands such as VRFY and EXPN.
smtp: Fixed processing of more than one response when sent in same packet

Added a loop to smtp_statemach_act() in which Curl_pp_readresp() is
called until the cache is drained. Without this multiple responses
received in a single packet could result in a hang or delay.
smtp.c: Fixed compilation error from commit f16c0de4e9bbe3

warning: unused variable 'smtpc'
smtp: Fixed handling of multiline server greeting responses

Incorrectly processed multiline server greeting responses as "wanted"
continue responses in smtp_endofresp(), from commit f16c0de4e9bbe3,
which in turn broke the SMTP server detection in the test suite,
because the EHLO command would not be sent.
smtp: Added support for NOOP and RSET commands
smtp: Added support for VRFY and EXPN commands
smtp.c: Fixed trailing whitespace
lib1507.c: Added missing set of CURLOPT_UPLOAD option

Although this option should have already been set, the SMTP module can
now download information from and send instructional commands to, an
SMTP server, requiring the option to be set in order to perform a mail
transfer.
smtp: Simplified the next RCPT TO logic
DOCS: Updated manpage following recent SMTP modifications

* Added SMTP section to --request
* Expanded --mail-rcpt to describe the usage when using the verify and
  expand commands.
DOCS: Updated curl_easy_setopt.3 following recent SMTP changes

* Added information about the verify and expand commands to
  CURLOPT_MAIL_RCPT.
* Reworked CURLOPT_CUSTOMREQUEST section, adding information about IMAP
  and SMTP custom commands.
smtp_state_mail_resp: removed unused variable 'smtp'
smtp: Fixed broken RCPT TO from commit 0ea4a80bb23666