CRM lectures on curves and Jacobians over function fields