Tab change handling and other updates.

Run Heartbleed check when user changes tabs - first checks cached sites
and if no cached entry exists then run remote check. Close open
notifications when user changes tab. Support short term caching for
sites that returned an error during check. Added constants file.