Modified isXML and isJSON to perform case insensitive content-type checking.