Implement temp rules. Fix some bugs.

Fix the double-tracking bug in SwitchProfile.
Fix browserAction icon on page refresh.