max_client support

Sometimes you may want to limit the number of concurrent connections,
this change allows it by setting the max number of client connection you
want to accept. If Mupber of clients == Max then the we stop to accept.