Blockchain and smart contracts can revolutionize sports and other forms of betting. Here’s how.