simplify add custom command
update unit test
do not allow adding same commands
use realloc to avoid memory leaks
use stl map to oprate command
delete un-used code
fix console readline
fix console hang
use local variable to reduce coupling
remove redudant prompt
[AUTO][ci skip] : updating tools/project-creator/module/cocos_files.json
[AUTO] : updating submodule reference to latest autogenerated bindings
Merge pull request #5380 from CocosRobot/updategeneratedsubmodule_1392710650

[AUTO] : updating submodule reference to latest autogenerated bindings
Merge pull request #5379 from CocosRobot/update_cocosfiles_1392710438

[AUTO][ci skip] : updating tools/project-creator/module/cocos_files.json
Merge pull request #5342 from heliclei/console-user-command

closed #4063 :revise CCConsole to support more easily for adding custom command.