Refactor gooftool, eliminating boilerplate.

Eliminate gft_common, switch to use the python 2.7 argparse
with subcommands (like hwid_tool), and also use logging instead
of the home-made xxxMsg commands.  Also switch to using the
RunShellCmd (renamed Shell) from common instead of the
myriad versions in gft_common.

TEST=run all of the gooftool subcommands on a DUT

Change-Id: I50ad8a9e2e7cb760317e2b8c2e94531dcfd5c451
Tested-by: Tammo Spalink <>
Reviewed-by: Hung-Te Lin <>
Commit-Ready: Tammo Spalink <>
17 files changed