Add support for SMTP PLAIN authentication

Hi,

This change adds basic support for SMTP PLAIN authentication. I've only tested this against our own client (which uses Ruby's Net::SMTP module), but it works just fine with that, and it's a simple enough spec that it should (hopefully) work with any client that wants to use PLAIN authentication.

Thanks
Leigh