Add support for screenplays, i.e. scripts that take a screenshot after each action