Merge pull request #1421 from blackberry/next

Next
Merge pull request #1424 from blackberry/next

Next
Merge pull request #1430 from blackberry/next

Next
Merge pull request #1433 from blackberry/next

Next
Merge pull request #1436 from blackberry/next

Next
Fixed bug in Effect.cpp where the OpenGL function glGetActiveUniform is called with a wrong parameter, causing an assertion failure on some graphic cards.
Fixed memory leak.
Update Container.cpp

Fix for addControl().

Rearranged execution.
Adds ref before removing control from current parent, avoiding deletion of control.
Allow clearing all scheduled events using Game::clearSchedule
Merge pull request #1443 from KJO/master

Fix for addControl prematurely deleting control.
checks if vsync is usable (to avoid problems with VM)
Merge pull request #1441 from olee/master

Fixed bug in Effect.cpp where glGetActiveUniform is called with a wrong parameter
Merge pull request #1446 from blackberry/master

Merge master to next.
updated coding style
tabs to spaces
Merge pull request #1445 from bosoni/master

checks if vsync is usable (to avoid problems with VM)
Merge pull request #1447 from blackberry/master

Merge to next
Fix vector assignment in terrain.frag

Apparently some drivers are picky about this.

Fixes #1449
Merge pull request #1450 from rgngl/patch-1

Fix vector assignment in terrain.frag
Merge pull request #1451 from blackberry/master

Merge master to next