Custom Output Formats

We currently use only the first suffix defined in layout lookups. We use all of them to detect Mime type of a given resource.