Online bettors spent over $40 million gambling on the identity of the next pope—one winner made $52,000 on a longshot