Convert away from CGI.pm.

It emits warnings in recent perls.