Added a system to write all the data/*.txt files from lua
This is for Steam Workshop compatibility, as it does not permit .txt files
This should mostly deal with #307, unless theres other whitelist problems