Added glDelete calls, made some modification to Mesh class.

To guarantee that glDelete calls are made while the GL context is still
active, all relevant lists are explicitly cleared.