Client side working, including response handling.

* Also improved thread safety.
* Also optimized.
* Also cleaned up code a bit.
Renamed test/sender.go to test/sendtest.go to avoid confusion.