add Query objects

These were added in OpenGL 2.1 to support occlusion queries. Later versions
add timer and primitive count queries.