Update ClassesController@Enroll(int)

Method now accepts ajax requests and returns a instance of
ClassJsonViewModel.