PsychHID/OSX: Prep work for new KbQueues.

Pull in the good parts of our last try of fixing OSX KbQueues with
MacBookAir 2013 and later.
PsychHID/OSX: Rewrite KbQueue implementation.

Now uses the new HID Managers IOHIDQueue functionality which was
introduced in OSX 10.5.

-> Testing shows this works as well as the old implementation at least
on my 2010 MacBookPro with internal keyboard, trackpad and external USB
mouse.

-> Code is somewhat simpler.

-> Let’s hope this will also better cope with the odd ones like the
2013 MacBookAir and later. Tests pending.

-> PsychHID for Octave on OSX rebuilt and tested.
PsychHID/OSX: Refactor, Support multiple KbQueues.

Refactor: Put all OSX specific keyboard queue handling functions into a
file PsychHIDStandardInterfaces.h/c in the Source/OSX/PsychHID/
subfolder.

Rework locking, threading, data structures and code to support multiple
active keyboard queues, just as on Linux and Windows. The new
implementation is about 75% of the Linux implementation + 25% from the
old OSX specific code, so OSX can benefit again from the superior Linux
implementation.

-> Tested with up to three simultaneous queues (Keyboard, Trackpad and
Mouse) on a early 2010 MacBookPro under OSX 10.9.5. Works as expected.

-> Status on 2013/2014 MacBookAir still unclear. That’s the one that
fails miserably ind which triggered this large, intrusive and painful
rewrite of the OSX implementation.

Anyway, a net improvement, i hope.

-> PsychHID mex for 64-Bit Octave on OSX rebuilt.
PsychHID/OSX: Remove all remaining 32-Bit support code for OSX.

Let it die. We assume 64-Bit and at least HIDUtils v2 and at least OSX
10.5, which is fine because we don’t support anything before OSX 10.8
anymore anyway.
-> PsychHID for 64-Bit Octave on OSX rebuilt and lightly tested.
KbDemo, KbQueueDemo: Robustness improvements and white-space cleanup.

Make them robust against multiple simultaneous key presses.
KbQueueCreate/Reserve/ListenChar - Minor cleanups.

Remove some OSX special case handling.
PsychHID/OSX: Final rebuild for 64-Bit Octave and Matlab.

-> New keyboard queues, fully tested, yay.
-> Let’s hope it also helps Apples friggin MacBookAirs 2013 with their
crappy operating systems.
Merge branch 'OSXKbQueues'