Add feature allowing result_limit to be configured in cgi.cfg