Add option to take screenshot of failure

Set the SCREENSHOT_FAILURES environment variable to take screenshots of
failed tests.  Some of the screenshots come up empty some of the time if,
say, the browser crashes.  For the most part they end up useful though.

Change-Id: I123a820a278b52e889f5a3dece6f4e55ad4a4c85