compound document

The 1st commit of this PR checks the content-type of each internal file and filter the html/xml ones. Since we want to make sure these files pass the validator, we don't need to list pdf, rdf, etc.

That method is pretty slow because we are doing a HEAD on each document. The second commit is an alternative solution where we don't check the content-type.