PAC Imitation and Model-based Batch Learning of Contextual MDPs