Serial/FTDI abstraction, first working draft. The input code is a hack: Somehow I flip the bits (bad shiftreg read code?) with the new code, so I have to flip them all back. Works with Leonardo et al with --noftdi