Avoid failure on debug check of replacements

"Hide Others" menu item doesn't accept any replacements. Providing
replacements will fail the debug check and block the execution.
Handle system application termination attempts

Implements `applicationShouldTerminate` method inside the `AppController`
(`NSApplicationDelegate`) to (catch and) handle all application termination
requests (e.g `Quit` in OS X Dock). Application termination is delegated to per
window `close`/`quit` event handlers (or default window behaviour) via
`App::CloseAllWindows` (called with the `quit` flag set): application terminates
when/if all window close.

Without an `applicationShouldTerminate` implementation the application
terminates immediately (e.g. with `Quit` in OS X Dock) without permitting an
orderly shutdown and emitting any `close`/`quit` events.

Fixes rogerwang/node-webkit#430 and also resolves rogerwang/node-webkit#924
adding AUTHORS for #2006
bump version to 0.10.6-pre
fix opening external protocol
dlpath argument for aws_uploader
unify filenames in package
fix previous commit
fix OSX packaging
fix package names
fix windows packaging
rebase fix for nw11
support linux menu
Merge pull request #2322 from ghostoy/feature/cong/fix-builtin

Avoid failure on debug check of replacements
rebase fix for windows
fix for tray
Merge windows with Linux

Conflicts:
	nw.gypi
add lost files for tray
merge Linux and Windows fixes
add missing files for menubar_controller