move shared parts from VertexManager::vFlush into VideoCommon

This removes some callbacks from the backends into VideoCommon.