Fixed multiple writes to SslStream with unit test
Merge branch 'secure'