Changed rendering code to use the modern opengl method

Cleaned up vertex shader and added ability to specify colour through a uniform