Chronology of Episodic Accretion in Protostars—An ALMA Survey of the CO and H_2O Snowlines