curvetun: refactored ct_client udp transfer function.

No intended functional difference. Refactored for cleaner re-use
in tcp_nc implementation.

Signed-Off-By: Scott Moeller <electronjoe@gmail.com>
curvetun: tcp_nc ip packet read function implemented

We will need to re-construct the ip packets as they come in,
in order to work on them atomically.