Add some useful functions to cgi_helper.rb.