Platform/MTReplay: Add automatic platform creation

The new command mtreplay --add-platform $IP will connect to a remote
device and guide the user through the creation of a new platform for
mtreplay and touchpad-tests.
It will automatically pull hw properties and ask the user to pick
the right xorg config files and identifiers.
The new platform info will then be stored in mttools/platforms/

BUG=chromium:353779
TEST=run mtreplay -a $IP

Change-Id: I33f077a3897508c0d2a9d2c1838a8ce81f768db4
Reviewed-on: https://chromium-review.googlesource.com/194976
Reviewed-by: Dennis Kempin <denniskempin@chromium.org>
Tested-by: Dennis Kempin <denniskempin@chromium.org>
Commit-Queue: Dennis Kempin <denniskempin@chromium.org>
diff --git a/mtlib/log.py b/mtlib/log.py
index 8adba50..568e59a 100644
--- a/mtlib/log.py
+++ b/mtlib/log.py
@@ -282,10 +282,10 @@
 
 class DeviceLog(AbstractLog):
   """ Downloads logs from a running chromebook via scp. """
-  def __init__(self, ip, options):
+  def __init__(self, ip, options=None, new=False):
     self.remote = CrOSRemote(ip)
 
-    if options.new:
+    if new or (options and options.new):
       self.remote.Execute('/opt/google/touchpad/tpcontrol log')
 
     self.activity = self.remote.Read('/var/log/xorg/touchpad_activity_log.txt')