Extract ui,network and storage module form cocos2d and modify lua template projects