Fixed directory listings.
Fixed how we're detecting content-type to use filenames.