Make Phaser work with requirejs

Changing the define function calls to use named modules - as this allows all 3 to reside in 1 file and still be located by requirejs.

Also, making the p2 and PIXI modules available globally when define.amd is found. That way they work with Phaser.