VideoCommon: loop bug in ShaderGenCommon.h debug
Add BitSet and, as a test, convert some JitRegCache stuff to it.

This is a higher level, more concise wrapper for bitsets which supports
efficiently counting and iterating over set bits.  It's similar to
std::bitset, but the latter does not support efficient iteration (and at
least in libc++, the count algorithm is subpar, not that it really
matters).  The converted uses include both bitsets and, notably,
considerably less efficient regular arrays (for in/out registers in
PPCAnalyst).

Unfortunately, this may slightly pessimize unoptimized builds.
Convert registersInUse to BitSet.
Add workaround for OS X symbol clash and AllOnes helper method.
Convert some VideoCommon stuff to BitSet.

Now with a minor performance improvement removed for no reason.
Add unit test.
D3D: Vertex and index data in one buffer
D3D: Using start index and base vertex instead of buffer offsets
D3D: Use two buffers for VertexManager
D3D: RestoreState no longer resets PS resources
Make expansion interface interrupt updates thread-safe (fixes loss of audio in Super Mario Sunshine on lower-end systems.)
Some style fixes.
OGL: fix interpolation of PP shaders
Update pointer types in memmap.cpp to match dolphin style guide.
Remove commented out EFB arena code.
Round up 7 nibble constants to 8 nibbles, for readablity.
Make some OSX-only functions static

Gets rid of function prototype warnings.
FileSystemGCWii: Shorten some string concatenations

Just does it all on one line instead.
VolumeDirectory: Pass std::string by reference for SetUniqueID/SetName
Fix image loading on Retina and other HiDPI displays.