issue #1758: adjusted folder structure for NPM

Separated cocos2d folder structure to core and modules for NPM.