fixed #1733, the python script perfectly works, tested on both osx and windows

This pull request fixed:
- Handling the difference of line ending between osx and windows
- remove os.popen("rm -rf" + …) usage which can not cross desktop platforms, uses shutil.rmtree instead
Merge pull request #2009 from walzer/project-creator

fixed #1733, the python script perfectly works, tested on both osx and windows
issue #1733: Updated template projects. Using the same package name on iOS as which on Android.
On iOS, org.cocos2d-x.HelloCpp -> org.cocos2dx.hellocpp.
Merge pull request #2010 from dumganhar/master

issue #1733: Updated template projects. Using the same package name on iOS as which on Android.
Merge branch 'master' of https://github.com/cocos2d/cocos2d-x into iss1733-hybrid
issue #1733: Updated the template of  hybrid lua project  for win32.