Replaces dependency on the tab-browser module

This fixes #2 in the very simplest way – the tab-browser module wasn't very extensively used so the few use cases there was has been replaced with basically the same code that the tab-browser itself used to do what it did.