refactored the CgiPlugin and enabled it to be configured to run CGI scripts by extension