[autotest] Add a new dut_status command.

This adds a new dut_status command that can report on whether a DUT
was working or broken at a given time.  Status is determined by
looking backwards in time for a job result (e.g. a failed Repair
job) that indicates the DUT's working or broken status.

BUG=None
TEST=Run against various DUTs with a known status, run new unit tests

Change-Id: I54558fec39d6be2988c2802e969f05a9fdf04642
Reviewed-on: https://chromium-review.googlesource.com/219349
Commit-Queue: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
4 files changed