Change the way the OpenGL debug callback is registered.

Previously debug.h declared the callback as a public function, and
client.cpp registered it. Now debug.h declares a function to register
the callback, and client.cpp just calls that. This lets me avoid
exposing the callback in the header at all.