Avoiding the static mongo and search repo contexts in the queue processing.

Accessing shared resources wouldn't have been thread safe while being
used in other static methods asynchronously. Also, marking certain
config data to load lazily.