Bryan Mbeumo scored an injury-time winner in a seven-goal thriller as Brentford claimed a 4-3 victory over 10-man Ipswich at the Gtech Community Stadium.