Merge remote-tracking branch 'upstream/master'
Implement has oauth2
Implement mailimap_has_authentication
Removed unnecessary case check
Merge pull request #77 from CodaFi/mailimap-has-oauth2

Added mailimap_has_xoauth2() to detect whether XOAUTH2 is available.