Switch apptest_runner.py to use ArgumentParser.

Also factor some useful functionality out into mopy/gtest.py

BUG=None
TEST=mojob.py test
R=msw@chromium.org, msw

Review URL: https://codereview.chromium.org/781063004