Merge pull request #1 from cocos2d-html5/v3

V3
issue #1108: use the CCDirector end  to test the restart game
issue #1108:add the restart variable in director
issue #1108: modify code
use four spaces instead of tab
use four spaces instead of tab
Merge branch 'v3' of git://github.com/cocos2d-html5/cocos2d-x; branch 'restartGame' of https://github.com/jianglong0156/cocos2d-x into v3
#1108: Wrap restart function into script binding section
Merge pull request #100 from pandamicro/restartGame

Add restart game for scripting