Updated code for preliminary texture mapping.  Almost works.  If you run through the code (breakpoint in main.cpp line 550) you can see the correctly texture mapped triangle start to rotate before memory problems show up.  There is a define in main.cpp to enable or disable the texturemapping test.