Using CGI/Fast CGI API for PHP

Now the framework works fine even using a Fast CGI configuration