p2.createContactMaterial() options parameter should be object
Detect CocoonJS.App

There's a bit of a story behind this, but I'll try to keep it short.

While I've been working on a patch to detect Cordova's 'pause' and 'resume' events for Phaser.Stage's checkVisibilityChange(), I came across this [thread] (http://www.html5gamedevs.com/topic/8834-cocoonjs-pause-game-on-app-switch/) over on the forum. My hope, at the time, was that someone else would come along and write this patch and I could use their work to finish my own code. But, since that hasn't happened yet (and might never), I'm sending in this PR first for the check that establishes a 'game.device.cocoonJSApp' boolean that I plan to use later.
Adjustment for JSLint
CocoonJS doesn't support mouse wheel

CocoonJS hasn't implemented the "DOMMouseScroll" and "mousewheel" events.
CocoonJSApp 'onSuspended' and 'onActivated' events

This PR depends on [#1150] (https://github.com/photonstorm/phaser/pull/1150)!

(I apologize for all the different pull requests in a short time period. I finally got some time to do some development tonight and have been making my way through many of my TODO items.)

This adds support for CocoonJS.App's 'onSuspended' and 'onActivated' events, making it so that the timers and sounds are stopped/started and muted/unmuted when the user swaps an app from the background to the fore or the reverse.

Because neither ['onActivated'] (http://doc.ludei.com/2.0.2/CocoonJS_App/symbols/CocoonJS.App.html#.event:onActivated) nor ['onSuspended'] (http://doc.ludei.com/2.0.2/CocoonJS_App/symbols/CocoonJS.App.html#.event:onSuspended) send an Event object themselves, this patch fakes sending an object by creating one during the function call and giving it a 'type' property for visibilityChange() to check against.
Fixes #1153

Previously the `Phaser.Keyboard` module's `lastKey` property was of type
`string` in the TypeScript definition file, but it is actually a
`Phaser.Key` object, so `build/phaser.d.ts` has been updated to reflect
that.
Merge pull request #1148 from rhmoller/dev

p2.createContactMaterial() options parameter should be object
Merge pull request #1150 from videlais/patch-3

Detect CocoonJS.App
Merge pull request #1151 from videlais/patch-4

CocoonJS doesn't support mouse wheel
Merge pull request #1152 from videlais/patch-5

CocoonJSApp 'onSuspended' and 'onActivated' events
Merge pull request #1154 from saikobee/issues/1153

Fixes #1153
change log update.
more typescript definition file updates