IBT: Fix for testing
REF: refactored lots of code, adjusted API for swig friendliness, fixed samples that broke, in the process of reducing the complexity of aiousb.h