Figure out when the window is in the foreground

`windows.activeWindow` only tells you if some other Firefox window is in the foreground, not if Firefox itself is entirely in the background.  I'd like to know when we're in the foreground.

Would help with #88 and notification in general.

We might be able to tell this from tracking the window inactive event.