port CGI scripts for AJAX calls to new WSGIHandler