Add classes_with_{assignments,exams}_on to user

This will help with changing the interface.