Huge refactor of generic_calendar.js, schedule check errors and requests
loading added.