Add support for recording time spent on pages with XAPI