More refactoring, zero-copy send/recv and Lwt (polling) support.