Changes needed to support SC.recordUpload.
Added browser tab active/inactive event handlers.