Remove tailing newlines from CCLog messaages.

Some CCLog message contained trailing newlines which
made the logs hard to read on many platforms.  The solution
here is to stip trailing newlines on those platforms, and also
to remove the newlines from the existing log messages.
Fix linux library path.

linux libraries were being built to "cocos2dx/lib/linux" rather
than just lib/linux.

Always used absolute path for -rpath linker argument.
Fix linux build

The cocos library uses libpthread and libGL on linux, so we need to link
with them.
Support variable cell sizes in CCTableView
fix property anchorPoint of CCScale9Sprite 

fix property anchorPoint of CCScale9Sprite doesn't work in ccb. Because initSpriteFrame method reset anchor point
cxx-generator ~> bindings-generator for plugin.
Clean up linked libraries

 * LOCAL_LD_LIBS and LOCAL_EXPORT_LDLIBS are the same
 * Remove unused -lEGL
cxx-generator ~> bindings-generator.
Updating bindings-generator.
Merge pull request #2332 from dumganhar/master

cxx-generator ~> bindings-generator.
Exposing CCApplication to js.
[PLUGIN] Removing the bindings glue codes for CCApplication since it was bound in cocos2dx.
Merge pull request #2333 from dumganhar/master

[PLUGIN] Removing the bindings glue codes for CCApplication since it was bound in cocos2dx.
cocos2dxmatoMac-mini : updating submodule reference to latest autogenerated bindings
Merge pull request #2334 from CocosRobot/updategeneratedsubmodule_1365490150

cocos2dxmatoMac-mini : updating submodule reference to latest autogenerated bindings
Updating iOS template.
Merge pull request #2335 from dumganhar/master

Updating iOS template.
Fixing a typo.
Merge pull request #2337 from dumganhar/master

Fixing a typo.
Fixing CocosPlayer AppDelegate to include openGL bindings. Also adding JNI stubs for changing orientation