Updated the flash main and the intellij project with the new LuaManager and some build time optimization.