Initial multithreading for some image processing.

Added job manager.
Implemented some image processing via jobs.