refact client

add client.c and rm null_client.h to null_client.c

Signed-off-by: Dong Yuan <yuandong1222@gmail.com>