add init_client to sock_stream
rearrange msg free
since all servers have the same structure, we make server base register all handlers
update Makefile