add PVStarLoadedEvent, arena scripts evaluated after all arenas loaded
allow renaming script api variable in script, fix resetApi and invokeFunction