libqiprog: Add endian-conversion helpers

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
usb_master: Convert USB data from LE to host-endian

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>