Lots of code for exporting files

Still todo:
- Export "editor" sections
- Make a lot of values actually save
- Export Visgroups, Cameras, many other bits.