usb_client: Move common code to hwcommon library