Moved OpenGL to its own class.

Provides better overall structure. Small changes in the main run
file.