issue #1108: add cleanScript and testcase, the testcase will be improved on next commit
issue #1108: add restart game test case
issue #1108: improve restart method, it can run in the appDelegate.cpp, but can not run in js code
issue #1108: first step, the function of cc.game.restart
Merge branch 'develop' into restartGame

Conflicts:
	samples/js-moonwarriors/project/Classes/AppDelegate.cpp
issue #1108:adjust the function name
issue #1108: finish restart game
issue #1108: remove the include code
issue #1108:restart game test case finish
Merge branch 'develop' into restartGame

Conflicts:
	tools/cocos2d-console
remove the tab
modify submodule commit
update cocos2d-console
Split Runtime.cpp to individual class files
fix some memory leak
debugging js code in package support
Change default compiler to gcc
Merge pull request #1158 from cocoscodeide/develop

debugging js code in package support
Rebuilt SpiderMonkey with ndk r10c
Fix travis adding NDK_TOOLCHAIN_VERSION=4.8