Wrapped SslStream into QueuedStream to prevent concurrent writes.

SslStream does not support concurrent writes. QueuedStream protects the
underlying stream from concurrent writes using a queue.

The implementation is actually done by @jonagh and fixes issue #30.