Added sasl functions.

Added sasl functions for plain and digest md5 authentication.