client: clean before make
client: fix connection read/write, add buffer dumping
client: add more debug