io: increase buffer for error() and forgive stray newlines
common: use GL debug extension to report errors via callback

Install debug callback if extension is present.
Get rid of the clunky CHECK() macro and calls to glError()