Implement libusbx descriptor stuff and some unit tests.