Track desched events on the state stack.

Big chunk of #363.