Bug 845080 - Extract BackgroundService superclass. r=rnewman