Cleanup and optimizations, global scripts now only send messages to player-controlled objects.