Tab switches no longer overwrite event handlers

To enable lazy loading, showTab cached and reproduced the html for each tab; however, it did not preserve event handlers.

This fix preserves lazy loading but leaves all rendered html in the dom and simply uses show/hide (via css) to make tab switches.

/cc @sshillo @ciniglio