OSX mouse support.

Adds mouse movementX/Y support and mouse wheel for Safari in HTML5 api. Fixes #2219.