records: tab switching events

* When tab switching is initiated, the "tabreload" JavaScript event is
trigerred, and when the tab is completely switched, "tabreloaded" is triggered.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>