Inference, Prediction and Control of Networked Epidemics