Refactoring command into reusable module

Now there's a debug for device and/or emulator.
Also added shortcut for opening device manager.