Added rendering thread, which should come in handy later. OpenGL seems to work fine