Initial commit of the new libusb plugin code.

Breaking this up so it's easier for you to review.
I'm not sure it's more readable, I've sent you an email with a screenshot. I don't mind either way.