Fix "Logging in" not counted as loading, which caused some scripts to fail sometimes.
Potential fix for not reliable identifying when activity screen has been exited.
Fix calculation of screenshot diff when rotated.
Add error message if unit is unlocked when trying to enter a step.