Add new option log_limit to limit api logging

+ Pass log_limit as an option while creating client_connection to truncate logging to the passed limit.