Generative Machine Learning, Granger Causality, and Optimal Intervention in Self-exciting Spatiotemporal Processes