add invulnerable frames after player damage

PlayerController now causes the player to toggle transparency and be
immune to damage for a few seconds after taking damage (has default
values, can be changed in jsons)