add ability to unplug phone during a test, and add preliminary battery test

This lets you unplug the phone, and when the user plugs it back in, it sets up the marionette client for you again.