Rewrite live/schedule JS to handle multiple sites.
Remove some redundancy in popup and background JS.
A little reorganization.