Merge pull request #1 from cocos2d/master

Updated to the latest version
Added Method to create a CCMenuItemToggle from a CCArray with a target selector.
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.
Update AUTHORS
Add Makefiles for Emscripten + Emscripten external
Set build config for Emscripten rather than Linux out of the box.
Add #defines for Emscripten platform
Add main.cpp files for app samples
bool x = NULL  =>  bool x = false, to silence Clang.
ifdef tango around some symbols that aren't defined in Emscripten (nor a bunch of other platforms, it seems).
Add freetype 2.4.11 to repo
Revert "Add freetype 2.4.11 to repo"

This reverts commit 418906d2612b59ead6826d8395b69168bdff0ca4.
Remove freetype source and add libfreetype.a as built by the Emscripten test-suite.

Revert "Add freetype 2.4.11 to repo"

This reverts commit 418906d2612b59ead6826d8395b69168bdff0ca4.
Instruct Emscripten to emit .html file for HelloCpp sample.
Build fixes for emscripten, add linkage to libfreetype.a
Update build process for HelloCpp to build .js and .data files separately, pulling both in from index.html
Add method to CCNode class to allow uploading data to GPU. Call it from CCSprite.
fix property anchorPoint of CCScale9Sprite 

fix property anchorPoint of CCScale9Sprite doesn't work in ccb. Because initSpriteFrame method reset anchor point
Get CCGrid to work.