#44 refactoring tls.hs: make starttls and sasl more easy to use