adds option to generate json only for modgui plugins, fixes templateData and html file fields on json and fixes plugin category parsing