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!
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
Merge commit 'refs/pull/4433/head' of git://github.com/cocos2d/cocos2d-x into ccconsole

Conflicts:
	cocos/scripting/auto-generated
Console: commands receives the char*

The char* is passed in case the commands
need to sub-parse the arguments.
Very useful for QA.
For example, the could create a command called "click", and the command could
receive arguments.
Merge branch 'develop' into console

Conflicts:
	cocos/scripting/auto-generated