Made compatible with both bootstrap 2.3.2 and 3.0.0

Attached to both the legacy 'shown' event and new 'shown.bs.tab'.
Since only one or the other should exist. There should be no conflict.