Adds performFunctionInCocos2dThread

... in Scheduler
Adds CCConsole.

it doesn't work... just the skeleton
Merge branch 'develop' into console
Adds readline
Merge branch 'develop' into console
Console is working!
issue #2771: move CC_USE_PHYSICS from project definition to ccConfig.h
[AUTO] : updating submodule reference to latest autogenerated bindings
Merge pull request #4431 from CocosRobot/updategeneratedsubmodule_1386143261

[ci skip][AUTO] : updating submodule reference to latest autogenerated bindings
Fixes several bugs in the console.

[*] Doesn't crash
[*] Closes connection
[*] Its faster
Merge branch 'develop' into console
More bug fixes
Adds Scene Graph command
Custom commands are working OK
Moves CCConsole.* to base/
fixes indentation issues

and some compilations issues on Linux
fixes compiler errors on Linux
fixes cocos2d.h include
Compiles on Android
dprintf is not defined on Android

using my own  dprintf