Balanced programme cache items now contain details of the term they apply to. closes #121
Fix getting advised absences for email reminder.
Merge branch 'staging'