refactor some plugin code and remove Cocos2dxInAppBilling