Move ReapplyGfxState() to GPUCommon.

This way it can be overridden, and simplifies some other things.
Add a function to run the CPU core.
Simplify ProcessDLQueue() slightly.
Merge pull request #3057 from unknownbrackets/gpu-thread

Prep work for GE and CPU on separate threads