"Ed" Star Tom Cavanagh Joins Cast of "The Flash"