Fixing resource copy
added linking of pthread to be able to compile on latest archlinux and latest gcc
Merge remote-tracking branch 'upstream/next' into next
Merge remote-tracking branch 'upstream/next' into next
Merge branch 'next' of https://github.com/blackberry/GamePlay into next

Conflicts:
	gameplay-samples/CMakeLists.txt
	gameplay-tests/CMakeLists.txt
Fixed copying recursive res files in new project cmake file
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Merge remote-tracking branch 'upstream/next' into next
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
Fix broken simulator build in master. Please patch next branch, too.
Merge branch 'next' of https://github.com/blackberry/GamePlay into next