Work in progress refactor, using sanitizeTab and updateTab to handle tab browsing (changing URLs, etc)