Merge pull request #1522 from SmallAiTT/npm_3.0

Update codes form develop 3.0
issue #3836 Refactor Scheduler. Delete some common functions. Rename some common functions then move them to CCCommon.js.
Merge pull request #1524 from SmallAiTT/3836_scheduler

issue #3836 Refactor Scheduler. Delete some common functions. Rename som...
Feature #3982 Base for CCTest. Wait for CCGame.