use onWindowFocusChanged(bool) instead of onResume()/onPause()

we should use onWindowFocusChanged(bool) to detect if the app is currently
visitible to the user or not. because onPause()/onResume() leads to false
positives on some android versions (e.g. Kindle Fire). if you lock those
devices, while the app running, everything is fine (onPause() is handled
properly). but as soon as you wake up the device, and the lock screen gets
visible, the app is resumed and the music is played (onResume() is
called to early).

this is a) not the best behaviour and b) such games will be rejected on the
samsung app store. onWindowFocusChanged(bool) is, like onPause()/onResume(),
available since API level 1 and it should be safe to simply switch.
jsbidings for mac
Merge branch 'develop' into js_mac
Merge branch 'develop' into js_mac
JS Tests: Almost working on Mac
JS Tests compiles and links in Mac

...but it doesn't work yet due to a bug with the touch events :-(
Merge branch 'develop' into js_mac
updates to SpiderMonkey v22
Project fixes

In debug: optimization is NONE, and other small fixes for Mac
closed #2339 refactor checkParams() in create_project.py, use OptionParser to parse the params
updates cocos2d-mac workspace
Merge remote-tracking branch 'cocos2d/develop' into js_mac
Uses new cocos2d-console
Merge remote-tracking branch 'cocos2d/develop' into js_mac
added windows keyboard support
cocos2d-x in Mac:

Works as expected. All the projects defines CC_KEYBOARD_SUPPORT.
Either all of them should define them, or none, otherwise the vtable
will be broken
issue #2325: [Linux] KEYBOARD_SUPPORT --> CC_KEYBOARD_SUPPORT.
Reverting submodules.
Merge pull request #24 from ricardoquesada/js_mac

Merge js_mac branch of ricardoquesada's repo.
issue #2325: [MAC] Setting the windows size to 800x450 which is the same as HTML5-tests.