Trigger herotabs.hide event before swapping tabs

Before the currentTab is replaced by tabToShow, trigger a custom
event on the "old" tab. Allows for teardown methods to be run
when hiding a tab.