added throttling and pausing to the dom scan, based on visibility and focus
various cleanup and renaiming