Only reload visible tabs/pages.

This so that hidden tabs/windows will not be reloaded needlessly. This uses the visibility API, so a non-focused but still visible page will be reloaded as expected. Additionally, pages do remember their pending reloads, so when you switch to a tab/page that should have been reloaded it will do so immediately.