Add support for FF16-and-later search service initialization, and support resetting the default engine post bug 738818 (FF23 and later). Also add some console logging.