Updates to use .buckconfig rather than command line argument.

Summary: Updated to use .buckconfig instead of command line argument.

Test Plan:
Switch between phone and emulator to trigger the error.
Verify that adb is restarted and device is found and install completes
Use `BuckEventBus` to log events in `BuildContext`.

Summary: Also delete an unused method.

Test Plan: ant test