Moved creation of log files to log.lua. Also, CONFIG is now global.