Stack middleware for content negotiation.