Added instant switch events.

Also added API option "instant" for triggering them via API.