Gallagher helps Canadiens beat Capitals 5-2 in Quebec City