Fix CGI parsing and add index.html