Add file logging for test stats.

This will allow for stats to be gathered in cases where USB is
disconnected (e.g. power tests) and should be the primary way stats are
passed to the test runner.

Change-Id: Ie7b042f9f629ef27b19ba8782b23f9d9db5e0490
9 files changed