Textures

Cleaned up the code somewhat... added framework for textures, still have
to implement math for perspective correct mapping (or even affine for
that matter)