Fix logger to properly log everything when debug is on
Move code from init.moon to events.moon
Change to dynamically export and clear global on debug