D3D11: Implement some PE pixel performance metrics.

Super Mario Sunshine is using a cool trick: To determine how much goop has been cleaned in ep. 6 of Sirena Beach, it counts the number of pixels that are input to the blending stage. For that it's using the PE performance registers ;)

Fixes issue 1498.
OGL: Implement pixel metrics (untested)
Video_Software: Implement PE pixel metrics
Windows build fix.
Video_Software: Fix a small issue that prevented perf queries from working at all.
Video_Software: Add some debugging logs for PE perf queries
More debugging logs for RDilux
Video_Software: Fix stuff.
Video_Software: Fix moar stuff
Video_Software: Some more debugging logs.
Fix OGL perf queries and make them not slow!
Add a possible TODO.
Dunno if the hardware behaves like this, but it likely does.
Merge branch 'master' into perfqueries.

Conflicts:
	Source/Core/VideoCommon/Src/VideoConfig.h
	Source/Core/VideoCommon/VideoCommon.vcxproj.filters
	Source/Plugins/Plugin_VideoDX11/Src/VertexManager.cpp
	Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp
	Source/Plugins/Plugin_VideoSoftware/Src/Tev.cpp
VideoSoftware: Cleanup PE perf metrics; returning the proper value now.
Build fixes for everyone!
Some cleanups.

PE perf metrics officially declared unsupported for the D3D9 project (out of pure laziness, anyone who cares can implement them :P).
Remove two incorrect lines. How did those even get there?!
Fixes two memory leaks, one is pretty bad for OSX.
Yell at pauldachz if this doesn't work.
Or... say thanks.
Fix Dolphin starting only once then crashing at startup
also don't cleanup efb copys on efb2ram

these may be upscaled and this high res textures would be lost