A shopping festival taught Alibaba how to handle a crowd. The same machinery now carries Olympic broadcasts and a costly bet on artificial intelligence.