More window stuff.

Make vertex buffer creation function a bit more sane.
Clean up window drawing a bit.
Add some helper functions for vertex buffer stuff.