Fixed #5 by exposing a new brain event (onDamage). Also introduced LevelScript.