Unifying Generative Models with GFlowNets and Beyond