Rewrite lua part of statisticsExporter to to use game.table_to_json and the save patching based module system.