Platforms

Duplicated code in several plugins was extracted into a new class: cocos2d.Platforms