Send CGI HTTP headers earlier

So that browsers show that sth is going on