Merge pull request #1657 from pandamicro/develop-3.0

Refactor #4308: Fix bug of director initialization
issue #4277 : Fix a bug of publish.js
Merge pull request #1658 from SmallAiTT/iss_4277_fix4release3.0

issue #4277 : Fix a bug of publish.js
Issue #4277: remove some characters in CCShaders.js for compressing
Merge branch 'develop-3.0' of git://github.com/cocos2d/cocos2d-html5 into Iss4277_FixBugsForV3.0
Issue #4277: fixed a bug that cc.Color's property doesn't work in advanced compress mode
Merge pull request #1659 from dingpinglv/Iss4277_FixBugsForV3.0

Issue #4277: remove some characters in CCShaders.js for compressing
issue #4277 : Refactor codes to support compile.
Merge branch 'develop-3.0' of git://github.com/cocos2d/cocos2d-html5 into iss_4277_fix4release3.0
Merge pull request #1660 from SmallAiTT/iss_4277_fix4release3.0

issue #4277 : Refactor codes to support compile.
Feature #4313: Implement NodeGrid
Feature #4313: add inline doc to cc.NodeGrid.create
Merge branch 'develop-3.0' of git://github.com/cocos2d/cocos2d-html5 into develop-3.0
Feature #4313: Adapt NodeGrid to -x API