Clean up codebot.ui.tabs.js and codebot.ui.js

Using callbacks to handle tab (de)activation. It's much better now.