Add documentation for the bytesWritten proxy to doc/api/tls.markdown
Move bytesWritten proxy to CryptoStream from CleartextStream
Split tests into http and https versions
Coding style fixups