Rewrite logging System, split up Lua bootstrapper