added kResolutionFixedHeight and kResolutionFixedWidth resolution policy

These new resolution policies will either ignore the width or height of the
specified design resolution size, but scale the ignored dimension, so it
matches the aspect ratio of the device.

Example:
A device with 854x480 pixels and a design resolution size set to 480x320
and the kResolutionFixedHeight policy, will create an internal canvas of
the size of 570x320px
If the device original size is 800x480 its internal size will be
534x320px
The height for both examples stays the same, the width is adjusted to match
the aspect ratio

Benefits:
- no distortions
- full canvas is usable, the visibility origin is 0/0
- I can use getWinSize() to place objects which is more intuitive
- for objects that should be placed at 0/0 I can use CGPointZero or 0/0 instead
  of the VisibilityRect methods, which is more readable
- using this method projects from the 1.x branch are probably much easier to
  port

Disadvantages:
- it is the developers responsibility to create the game code so that it
  supports multiple aspect ratios
Added support for secureTextEntry (passwords)

Added a secureTextEntry property. Enabling this property causes the
TextField to display the entered text as bullets.
fix property anchorPoint of CCScale9Sprite 

fix property anchorPoint of CCScale9Sprite doesn't work in ccb. Because initSpriteFrame method reset anchor point
Linux: Set writable path to "<user's home>/.config/<app name>"
Merge remote-tracking branch 'upstream/master'

Conflicts:
	cocos2dx/platform/linux/CCFileUtilsLinux.cpp
Linux: Set writable path to "<user's home>/.config/<app name>"
Merge remote-tracking branch 'upstream/master'
Restore codes of init m_strDefaultResRootPath
Check array boundaries to avoid the "array-bounds" error on linux

Compiling on linux causes the error "array subscript is above array
bounds [-Werror=array-bounds]". This commit adds boundary checking
using the constant defining the maximum number of items in the "nuke" array.

Signed-off-by: Roger Zanoni <roger.zanoni@openbossa.org>
Read app name from /proc/self/exe
Set writable path to XDG_CONFIG_HOME if it exists.
Fixing SpriteBatchNode and LabelBMFont to prevent error when release is called without calling init
remove duplicate default variable definition
fixed #1862: CCScrollView::setContainer may cause dangling pointer when NULL is passed into.
Merge pull request #2367 from dumganhar/iss1862-setContainer

fixed #1862: CCScrollView::setContainer may cause dangling pointer when NULL is passed into.
fixed #2040: Getting scale property from sub-ccb node may trigger an assert of 'CCAssert( m_fScaleX == m_fScaleY, "CCNode#scale. ScaleX != ScaleY. Don't know which one to return");'.
Merge pull request #2368 from dumganhar/iss2040-ccb-getScale

fixed #2040: Getting scale property from sub-ccb node may trigger an assert of 'CCAssert( m_fScaleX == m_fScaleY, "CCNode#scale. ScaleX != ScaleY. Don't know which one to return");'.
fixed #1860: onNodeLoaded will be called twice if ccb was added as a CCBFile.
Merge pull request #2369 from dumganhar/iss1860-subccb-onNodeLoaded

fixed #1860: onNodeLoaded will be called twice if ccb was added as a CCBFile and adding test.
Merge pull request #2349 from rogerzanoni/master

fixed #2052: [Linux] [-Werror=array-bounds] error appears when compiling Box2dTestBed.