On the Origin of Bimodality in Galaxy Properties: Cold Flows vs. Shock Heating, Clustering and Feedback