[2.1.3] Bug fixes

-fixed a bug in the JSONtoCSV parser
-various changes including fixing a query bug where the mimeType needs
to use the full string.