Bring event names in line with upstream bootstrap

Bootstrap creates a show/hide event prior to showing/hiding an element and a
shown/hidden element after showing/hiding it. Except, in older versions of
bootstrap this wasn't implemented for tooltips and popovers. We ended up
implementing this functionality itself, but unfortunately we used our own names
for the events, and additionally re-used THEIR event names for our own
purposes. Bootstrap has now fixed this issue, leading to infinite recursion
in our code. This applies a more consistent event naming.
Bring monkey-patched show in line with upstream.
Only monkeypatch if bootstrap is old.