Fixed some issues with cloning of nodes (specific to RenderState), where a crash could occur if you tried to release the original node. The new node also shared some of the state of the original, where it should have been making a copy.

Fixes issues with rendering scenes that nest models within joint hierarchies.

A side effect of the above fix is that joints are now always visited when calling Scene::visit() and it is also possible to have the same joint visited more than once for complex nodes that have multiple models referencing the same joint.

Fixed an issue where cloning a node that had certain material auto bindings could crash if the node was not part of a scene before cloning it.
Merge pull request #838 from sgrenier/next

Cloning and Skinning Fixes
XBox 360 Support for Mac OS

Adds support for XBox 360 controllers to the current Mac OS gamepad
support.  Also adds null checks to one of Gamepad's constructors.
Change header and lib search paths in xcode project.

Relative paths to external-deps and src folders were assuming that the
repo was cloned to a folder named "Gameplay", and not e.g.
"Gameplay-Next" or "MyGameplayFork".
Fixed userData pointer not cloned when cloning a node.
Merging with upstream/next
Merge pull request #844 from ablake/next

XBox 360 controller support for Mac OS
Merge pull request #845 from WolfgangD/next

Fixed userData pointer not cloned when cloning a node.
Changed ScriptController so you can execute a lua function that is in a table.
Previously it was only possible to execute a global lua function using ScriptController::executeFunction.
I've also changed many of the ScriptController getters so you can get numbers and strings that are stored in tables.

_script->getString("tableA.tableB.str");
_script->executeFunction<void>("tableA.func");
Merge pull request #850 from dgough/next

Changed ScriptController so you can execute a lua function that is in a table
Added a lua function "convert" to convert a userdata value to another gameplay class type.
The purpose of this function is convert a Control to a Button, or PhysicsCollisionObject to a PhysicsRigidBody.
This function will change the meta table of the userdata value to the meta table of the class with the given name.
Updated CHANGES.md
Changed the comment for Matrix.createPerspective to say degrees instead of radians.
Fixed #831
Gametel and SteelSeries Free support for Mac

Adds controller mappings for a couple Bluetooth gamepads.
Merge remote-tracking branch 'upstream/next' into next
Merge pull request #851 from dgough/next

Added a lua function "convert" to convert a userdata value to another gameplay class type
Merge pull request #852 from ablake/next

More Mac gamepads
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Initial Linux Gamepad support
Better Axis mapping struct