Use glDrawElements for bounding boxes

This is mostly an experiment for how to use glDrawElements correctly,
but it also gets rid of several deprecated OpenGL calls.