Moved check_gl_error to draw.h
Initialized GLEW.
Added some OpenGL 3.2 code to draw.h (not used yet)
Deleted unused GL settings.
Deleted mouse and motion functions.
Creates a painter object and the constructor now specifies the OpenGL draw options.
Use painter object instead of static painter methods.