better handling of CpkEndpoint success/fail
mimeType is only set if dataType==json, removed weird call to doCsvQuoting
Merge pull request #66 from carlosrusso/master

fixes to CpkEndpoint