Tls protocol

- Code cleanup
- Replaced our IP parsing with a proper parser
- Renaming of files to follow the tls_ convention.
- Unit tests for the IO layer of TLS
- Rewrote the TLSRecvLines to harden it.