Refactored mode handling.
Improved mode switching options.
Deal with YubiKey NEOs in composite mode better.
Updated OSX libccid patch.