Add some initial threading logic. This commit is incomplete/broken.
Audio now works in release. Made sure all local variables were initialized. A little more organization.
Fix color order from BRGA to RGBA. I have no idea why it was like that in the first place.
Move emulation to its own thread. Add QGLWidget for drawing.