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
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
fixed #2042: remove libxml2
Merge pull request #2342 from minggo/remove-libxml2

fixed #2042: remove libxml2
fixed #2034:use previous path to get UserDefault.xml
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
Merge pull request #2212 from rogerzanoni/linux_link

fixed #2044: Fix linux build, libpthread and libGL libraries need to be linked on linux.
Update AUTHORS
Merge pull request #2340 from rohankuruvilla/cocosplayer

fixed #2045: Small fixes to CocosPlayer.
1)Fixing AppDelegate to include OpenGL bindings
2)Adding orientation change JNI stubs
3)Commenting out cache clean on receiving new zip file (was causing consistency issues)
4)Fixing bug where "Connected!" message was displayed on a different thread
Merge branch 'newlines_in_cclog' of https://github.com/sbc100/cocos2d-x into sbc100-newlines_in_cclog

Conflicts:
	cocos2dx/proj.linux/cocos2dx.mk
Merge pull request #2346 from dumganhar/iss2046-newlines

fixed #2046: Stripping newlines from log message and fixing linux library location.
Update AUTHORS
Merge pull request #2195 from folecr/androidlinkerflags

fixed #2047: Clean up linked libraries for Android.
Update AUTHORS