World Wrap and P2

Changes only to documentation for clarity.
Should fix the Error in rotation
Sign Error
TileMapLayer getTileX/Y returns number not Tile

Fixed simple type error.

http://www.html5gamedevs.com/topic/8621-gettilex-gettiley-typescript-signature-wrong/
Cordova 'deviceready' event check

A slightly obnoxious but necessary hack to prevent a race condition between the loading of Apache Cordova and Phaser itself. 

Without waiting for the 'deviceready' event, Phaser can often load first, preventing any console messages from appearing to the user. Because Cordova writes to the platform's console (via CordovaLog), it must first be loaded and signal its own 'deviceready' event before console or plugin usage can occur. Otherwise, all messages and functionality is ignored.
Merge pull request #1120 from videlais/patch-2

Cordova 'deviceready' event check
Merge pull request #1114 from clark-stevenson/patch-2

TileMapLayer getTileX/Y returns number not Tile in TS def file
Merge pull request #1107 from gamedolphin/test

Fixed Point.rotate bug . Also added a little documentation for world wrap.