Correct content types for xml / json endpoints.

adding content types to xml and json endpoints