Web Replay: capture and replay the Page Visibility API (visibilitychange event).

Closes #383.
Web Replay: animation and transition events should be mediated by EventSender.

Closes #388.