Added STARTTLS auto functionality. Ready for testing.