added chrome.tabs.onReplaced which fixes the bug with launchedTab. The
bug had to do with preloading certain pages and simultaneously closing
and replacing a tab. There are still certain bugs where the API doesn't
even recognize that a tab is updated.

Fixed a logic error with the counter. The counter now sets itself to the
counter it receives from the server if it was behind.
Re-implemented the master/slave system