Add plugin callbacks for after screen changes.

One application is creating associated records needed for different
display types, for example concerto-hardware, which will be loooking
for a special suffix "s" on the temp token, indicating a hardware
screen.
Fix temp token checking. See #796.