Learning Dynamics Models for Model Predictive Agents