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>
Merge pull request #140 from adrianp/poo

records: tab switching events