Fixed possible bug in JSON, added some logging.
JSON check
Fixed model binding in tag definition
Fixed EnrollScheduleTemplate and created necessary event classes
Various fixes to EnrollSchedule model, events, template, xml def