Ref #531, changes calendar.api to load active role and group from user model rather than using session data.