WIP dispatch: Get it working

STATUS: XML dispatch is used by all apis, GL and GLES{1,2,3}.
STATUS: Piglit builds with no new warnings.