Baltimore Ravens held on for a 34-31 victory over San Francisco 49ers at an eventful Super Bowl XLVII in New Orleans.