Add more files to .gitignore

Ignore backup files and OSX annoying .DS_Store litter…
Delete old dead .plist files.

These have been dead since six years… Let'em rip.
Cleanup some typedefs to something more sane.

Don't define psych_uint8 as OpenGL GLubyte datatype. It creates an
unnecessary dependency on OpenGL headers in a otherwise
graphics-agnostic file.
Include files cleanup.

Don't include glew.h for OpenGL support for modules that don't need it,
ie., for anything but Screen(). Todo: See if we should move this into
Screen specific headers in the future?

Add some Apple-specific includes not needed beforehand, because they
were (probably) included by Quicktime.

TODO: May need to revisit some of these includes for Octave support.
Disable all Quicktime based functionality in 64-Bit PTB.

Quicktime is available in 32-Bit versions of Windows and OSX PTB, but
won't be available on corresponding 64-Bit versions. Make use of QT
conditional on defined(PSYCHQTAVAIL) and define it in Screen.h if
running on a non-Linux system which is 32-Bit, not 64-Bit.
OSX: Fix wrong 64-Bit vs. 32-Bit Pointer comparison against constant.

PsychSetThreadPriority() on OSX tested a (potential) 64-Bit pointer
against a hard-coded 32-Bit constant --> Avoid pointless compiler
warning.
Screen/OSX: "Fix" missing QuickDraw type definition.

DisplayIDType as defined in QD/Video.h is undefined despite that header
file should be included? Whatever, the cast op there is not necessary,
as compiler auto-promotes the type properly.

Add CoreVideo.h directly to #includes to make compiler happy about
CVOpenGLTextureRefs and similar CV data types.
PsychtoolboxVersion: Drop pointless support for OS-9

Gets rid of many conditionals which create useless maintenance burden.
Memorybuffer2Texture.c: Remove redundant stdlib.h include.

Caused superfluous compile failure on some idiotic platform.
PsychtoolboxPostInstallRoutine: Add support for 64-Bit Octave on OSX.
IsOSX(): Detect 64-Bit OSX as well, and allow check for 32-Bit vs. 64-Bit host.
Installer/Setup/Updater: Add support for 64-Bit OSX.

Don't reject 64-Bit MacOSX as target platform for
installs/updates/setups anymore.
Initial build script and mex files for 64-Bit Matlab on MacOSX.

Initially defeated by that utter piece of crap that Apple calls and IDE
(XCode-4.3 -- and i though Xcode 2 was mediocre, this defines a new all
low) and its various "really funny" bugs, resort to a makeshift M-File
as "Makefile". Not that it is much better, because Matlab R2012a is a
strong competitor for crappyness in details that count. Its mex file
compiler function is so f$#@d that a stock bog-standard install of
R2012a cannot even compile the most basic example mex files provided
with Matlab on 10.7.3. Are these guys on drugs? Or do they just not do
any QA testing?

Anyway, it works, albeit painful, as a stop-gap measure. GetSecs,
WaitSecs and IOPort compiled successfully for Matlab 64-Bit so far.
Screen is wip.
Screen: Movie support - Don't fail if no movie playback support available.

Make sure that critical startup/shutdown routines just noon, not fail,
so regular Screen() ops are not prevented.
Quicktime: Provide surrogate routines if QT and GStreamer support disabled
Screen('Computer'): Small fixup for OSX

Was not effective. 'Computer' works correctly, except it misreports the
cpu clock and virtual memory available. Physical memory and other
parameters are reported correctly though.
OSX: Screen('GetMouseHelper'): Make 64-Bit compatible

Mouse button queries still work old-school. Mouse position queries
reimplemented for 64-bit using HIToolbox routine.

GetUserFocusWindow() is missing on 64-Bit, so no query if current
window has keyboard focus.
OSX: Screen('ShowCursorHelper'): 64-Bit compat.

SetThemeCursor() is missing -- Disable it for now. No way to change
appearance of cursor, but showing/hiding/positioning should still work.
OSX Screen: Disable kernel driver support for now on 64-Bit

The morons have changed the userspace<->kernelspace interface as well,
this needs reimplementing.
OSX Screen: Create surrogates for missing Carbon window setup functions.

The morons have removed Carbon window support on 64-Bit. Replace with
stubs for now to make at least conventional fullscreen windows work.