Enable use of Android emulator as device target

Hi,

This pull request does what it says in the title -- allows you to specify that commands should target the currently active Android emulator.

Let me know if you have any feedback.