MDL-42504 quiz autosave: alert users if connection lost.

When the auto-save fails, we alert the user that they may have lost their
internet connection so that they don't do more work that they might just
lose.
Further changes.