Add support for starttls=auto

This closes issue #22.