Spatial and Spatio-Temporal Error Correction, Networks and Common Correlated Effects