Added deploy to device over USB support and removed some unused code.