Add partial implementation of connection handler; introduce send/listen command codes. Add stub for read.