Add support for the Page Visibility API

Add support for the Page Visibility API, normalizes visibilitychange events, the document.hidden and the document.visibilityState properties. Uses fallbacks to support older browsers.

Enyo-DCO-1.1-Signed-off-by: Johann Jacobsohn j.jacobsohn@satzmedia.de