first try of primitive restart index generator

Convert all quads+triangles into trangle_strip and uses primitive restart to split them.
Speed up triangle_strip, but slows down all others primitive formats.
Only implemented in ogl.
Merge branch 'master' into primitive_restart

Conflicts:
	Source/Core/VideoCommon/Src/VideoConfig.h
	Source/Plugins/Plugin_VideoDX9/Src/main.cpp
	Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
enable primitive restart on dx11
convert triangle_fan to triangle_strip
small cleanups
use templates for primitive restart
render a triangle for a 3 vertice quad

fix issue 6214
fix triangle_fan size calculation

wasn't updated for the new primitive restart implementation
proper ogl primitive restart code
small cleanup suggested by neobrain
ogl: fix single core crash

osx is missing, sorry but I'm too stupid for objective-c
Merge branch 'primitive_restart'
ogl: remove GL_TRIANGLE_FAN on utils rendering

wtf have I done? fans aren't supported well on hardware