pulled the array buffer code out into a new class

Removed the array buffer stuff from shaderProgram and put it in a new
model class. we now pass the raw data and its format into the model
constructor as a single object.