dut_power: preemptible cmdline tool

This CL allows Ctrl+C (or SIGTERM) signals to dut-power to be handled
gracefully by setting the measurement to conclude prematurely, but still
retrieve all the data collected until that point.

BUG=chromium:806146
TEST=manual testing
$ dut-power -t 15
(wait 4-5s)
Ctrl+C
> [regular output]

Change-Id: Ia6fdbfef3b96e3c4395d833d80088b36dff8bdcd
Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1149428
Reviewed-by: Todd Broch <tbroch@chromium.org>
1 file changed