Node.js middleware to execute CGI scripts with URL rewriting