added registry rebuild

The bg script now rebuilds its registry of open tabs whenever the
settings are changed, whether from the settings page, or via the popup.