Added message filtering by question type.

- Added a subject and difficulty field to the alarms, consisting
  of term references
- filtered the question asked by subject and difficulty to match
  the subject and difficulty stated in the alarm.