[tls] write data by small (1500 bytes) chunks, see http://www.belshe.com/

This pull request was previously posted here, but this time it's low-level:

P.S.
See http://www.belshe.com/2010/12/17/performance-and-the-tls-record-size/