Merge pull request #31 from SableRaf/master

New Processing example
Mac OS X: Various fixes / workarounds for pairing on 10.7
Java examples: Use psmoveapi.count_connected()

See also: https://github.com/thp/psmoveapi/issues/30
Processing example: Count connected controllers (issue 30)
OS X: Fix parsing of 10.x.0 version numbers (fixes #32)

For OS X versions with a patch version of 0, the sw_vers command does
not output the patch version (i.e. "10.8" instead of "10.8.0"), so we
fix this by accepting also two parsed numbers instead of only three.
Remove Windows notes from README (see README.win32)
SWIG bindings: Add get_magnetometer_vector() binding
Java SensorReading example: Read magnetometer vector
New Processing example: Sensor reading
Compile everything as position-independent code

This fixes compilation issues where the shared Python
module gets linked to the static PS Move API library.

The solution is not perfect, but for now we opt for
having a nicer installation experience (self-contained
Python and Java modules) instead of doing it in a clean
way (shared libraries all over the place).
Pattern for camera calibration (from OpenCV)
moved: Add instructions, client API calls
SWIG bindings: Add set_remote_config() function
Tracker: Small "algorithm simplification"

Not that it will make much of a difference in
performance, but it's easier to document this way.
Reserve name of magnetometer calibration tool
Sensor Fusion OpenGL Examples

This is a cleaned-up version of the private
experimental branch that adds some OpenGL
examples.
Tracker: Initial exposure control support
Make OpenGL example builds optional
Dynamic exposure option via binary search
Automatic dimming factor during blinking calibration

When using the blinking calibration on the first controller, the
saturation value is taken into account to determine the dimming
factor. This is useful in situations with higher exposure values.

The next controllers will then use the same dimming factor as the
first controller for now (we could think about maybe doing
controller-specific dimming factors to better account for different
colors). If the tracker dimming factor is manually set to 0, this
forces a re-calculation of the dimming factor when the next controller
is added.