Basic content-type negotiation (xml and json).