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
Clean up linked libraries

 * LOCAL_LD_LIBS and LOCAL_EXPORT_LDLIBS are the same
 * Remove unused -lEGL
Fixing CocosPlayer AppDelegate to include openGL bindings. Also adding JNI stubs for changing orientation
delete libxml2
fixed #1904:strip libcurl.a on x86 architecture
Merge pull request #2341 from minggo/strip-libs

Strip libs
fixed #2042: remove libxml2
Linux: Set writable path to "<user's home>/.config/<app name>"
Merge remote-tracking branch 'upstream/master'

Conflicts:
	cocos2dx/platform/linux/CCFileUtilsLinux.cpp
fixed #2043: Upgrading SpiderMonkey to Firefox20.0.
Merge pull request #2342 from minggo/remove-libxml2

fixed #2042: remove libxml2
fixed #2034:use previous path to get UserDefault.xml
Linux: Set writable path to "<user's home>/.config/<app name>"
issue #1471 : Resolve the encoding bug in modifyAppMk.sh
Merge pull request #2344 from minggo/userdefault-hotfix

fixed #2034:use previous path to get UserDefault.xml
Merge pull request #2345 from natural-law/master

issue #1471 : Resolve the encoding bug in modifyAppMk.sh