Toast, the Boston-based restaurant payments startup, has raised a whopping $400 million in Series F funding, bringing its valuation to $4.9 billion.