Resource management

Added a helper class to help keep track of Opengl resources