Get rid of a lot of drawing code, move initGL into main().
Apply more refactoring.