Generalized buffer creation, implemented IBOs

Added cube factory method
Fixed a crash bug involving bad pointers in Mesh
Added mvp matrices, added cube default mesh

Fixed window resize not working properly