A module that abstracts the Page Visibility API with fallback to dodgy window.focus based for crap browsers.