Move usb scanning code to ao-tools library