Implemented basic client / server communication on top of tls.