Removed delete from CC_SAFE_DELETE and changed 0 to nullptr on all CC_SAFE macros

This implements this issue: https://github.com/cocos2d/cocos2d-x/issues/3099

I've also change all pointer assignments to 0 to assignments to nullptr on the CC_SAFE macros.
Also aligned them for better readability :)
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
Adding CCControl js binding.
ControlEvent --> Control::EventType.
make CCBAnimationManager::getSequenceId public; add method CCBAnimationManager::getSequenceDuration to get duration of timeline;
Refactored toplevel Makefile
Up refresh interval to 2 secs
Android port is a static library
Shared Android makefile uses the platform specific code as a static library

 * Resolve conflicts with latest cocos2x/Android.mk
 * Revert changes to cocos2dx/Android.mk introduced by 71a2cb729264a7a90b74517be2a2745a50a5a977
 * Update files in label_nodes
ccx : add nativeactivity
ccx : Link libraries used by nativeactivity.c
simplegame : no java, Create empty src/ directory with a nojava.txt file
simplegame : enable building native library for x86
simplegame : Use nativeactivity
simplegame : Use cocos2dxandroid static library
ccx : Change minimum config to RGB565. Add depth buffer and stencil buffer requirements to EGL config.
ccx : Call cocos rendering methods.
 * switch to .cpp for nativeactivity.
 * ccx : update log tags to say .ccp instead of .c