usb_packet: Major rewrite, e.g. to prepare for GUI usage.