Created a reshape and set_view_position functions in Painter. Uses these functions for handling reshaping of the window and moving of the camera.
Made init_shader a private function of Painter and major clean up in the Painter constructor.