Lots of little fixes, plus chapter 9 example.

I don't like the 'use statics silently' pattern.  Why not use the mesh here and let whoever wants to cache the returned geometry, cache it?  Otherwise you're assuming that I'll never want to modify the state of a quad after I've created it.