better logging, moved the existing tab check code to the popup to avoid duplicate API query calls when rendering.
added debug hidden setting to only log to the console when enabled.

Logging can be set from the background page using the setDebug(true) method or temporarily enabled using debug = true.
final refactoring of the tab checking code
release update