fixed #1640: Added sys.capabilities support and fixed a bug in CCAnimationCache.

fixed #1641: The coins in Watermelon Me fail to animate in cocos2d-x JS binding.