purge profiler data one + or - is pressed

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
Removed Iterator class

There is no need to implement `Array::Iterator`.
It is replaced by returning `end()` and `begin()`

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
Adds more asserts

The instance methods cannot be used if the instance was not `init()`

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
Better destructors logs

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
Array & Dictionary fixes

In many places `Dictionary` and `Array` are not being initialized. In fact `Dictionary` doesn't  have the `init()` method creating potential leaks.
Also in objects like `Armature` and the new `LabelTTF`, the `Array` object is not being used a pointer. So it doesn't use the 2 phase initialization, creating potential leaks.

This patch fixes all those issues.

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
Merge branch 'develop' into dictionary_array_fixes

Conflicts:
	cocos2dx/platform/mac/CCFileUtilsMac.mm
	extensions/CCBReader/CCBAnimationManager.cpp
	extensions/CCBReader/CCBReader.cpp
	extensions/CCBReader/CCBSequenceProperty.cpp
	extensions/GUI/CCScrollView/CCScrollView.cpp
[NaCL] Add missing include of <sys/mount.h>

This was previously included by nacl_io.h but
upstrean changes in NaCl removed this.
issue #2434: add android_generator and generate cocos2dx, extensions and TestCpp's android.mk files
add PathUtils.py for python library.
fixes memory leak!

and double-autorelease on Dicts (on mac)
Merge branch 'develop' into dictionary_array_fixes

Conflicts:
	cocos2dx/cocoa/CCArray.cpp
	cocos2dx/cocoa/CCArray.h
	cocos2dx/label_nodes/CCLabel.cpp
	extensions/CCArmature/datas/CCDatas.cpp
	extensions/CCArmature/display/CCDisplayManager.cpp
Merge pull request #3455 from ricardoquesada/dictionary_array_fixes

Dictionary array fixes
#closed #2434: refactor LocalVarToAuto.py  to use the PathUtils and fix some errors
closed #2434: change name "android_generator" to "android_mk_generator
issue #2434: Delete unused method dirs and find_files in Android.mk template
Merge pull request #3456 from sbc100/fix_build

[NaCL] Add missing include of <sys/mount.h> [ci skip]
closed #2434: Use the origin android.mk files instead use templates
Merge pull request #3457 from boyu0/iss2434_gen_android_mk

closed #2434: Add android_mk_generator.py to generate Android.mk