Moved webgl code into SimpleRenderable class.