t/gitweb-lib.sh: Split gitweb output into headers and body