issue #2345: refract CCImage and CCTexture2D.
issue #2345: move g_texturePixelFormatInfoTables into Texture2D
issue #2345: update the png, jpeg and tiff libraries. Fix the testFormatForPvrTCSupport return incorrect answer when GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG undefined.
issue #2345: Merge branch '2345' into iss2345_refactor_ccimage
issue #2345: edit linux command to link the libpng12-dev.lib instead of use ourselves. Move ccTexParams into CCTexture2D
issue #2345: delete the linux png libraries.
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into iss2345_refactor_ccimage
issue #2345: fix some coding style
fix js and linux compile error
issue #2345: edit getPixelFormatInfoMap method to return reference.
issue #2345: fix mac crash due to libjpeg
issue #2345: update generated index
issue #2345: edit for linux compile error
Merge pull request #3377 from boyu0/iss2345_refactor_ccimage

issue #2345 refactor CCImage and CCTexture2D