Scanner context refactor from global to per-scanner to prevent issues with multiple simultaneous Pajdeg instances.