Refactoring to have class 'Window' initialize OpenGL, and 'Main' to simply run program loop.