Two goals in second-half stoppage time snatch all three points for Derry City as they rallied from 2-0 down to beat Waterford United 4-2 at the Ryan McBride Brandywell Stadium.