Fix package installation in make-all-linux-project

There was a bug where missing packages would cause the script
to exit.

This change also makes several improvements:
- script can now be run from anywhere (not only the cocos root)
- apt-get is called only once to install all missing packages
  (this makes output much more informative on first use)
- added comment/docs to the top of the script
Deleting all files in 'scripting/javascript/bindings/generated' except '.git' and 'README'.
Merge pull request #2131 from dumganhar/master

Deleting all files in 'scripting/javascript/bindings/generated' except '.git' and 'README'.
cocos2dxmatoMac-mini : updating submodule reference to latest autogenerated bindings
Merge pull request #2132 from CocosRobot/updategeneratedsubmodule_1362903160

cocos2dxmatoMac-mini : updating submodule reference to latest autogenerated bindings
Fixed compilation error for MAC port.
Merge pull request #2133 from dumganhar/master

Fixed compilation error for MAC port.
Updated iOS template.
Merge pull request #2135 from dumganhar/master

Updated iOS template.
Merge pull request #2124 from sbc100/fix_make_all

fixed #1819: Fix package installation in make-all-linux-project.
Merge remote-tracking branch 'remotes/upstream/master'

Conflicts:
	scripting/javascript/bindings/generated