Dont write directly to files but rather write and copy a tmp file
Add support for entities to automatic face movement direction
Fix typos
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu