Move clean_search_url out of CGI
Remove most CGI usage from buglist.cgi