Caps rally to beat Flames 5-4 in home opener