Initial commit of the new libusb plugin code.

Breaking this up so it's easier for you to review.
Do you mean move it into a function in the annonymous namespace? Since it's a single line it's not really worth the trouble.