Better content negotiation scheme

I'm trying to work with a good content negotiation pattern. This one
seems to work