Conditional alerts

Add transition to invoke the condition and send the message
Merge branch 'develop' of github.com:medic/kujua-sentinel into conditional-alerts
Conditional alerts

Evaluate condition using recent forms from the database
Conditional alerts

Save the document once done
Conditional alerts

Restrict forms to from same facility only
Conditional alerts

Template replace the alert message
Conditional alerts

Replace the recipient with variables if required
Conditional alerts
Conditional alerts

Several bug fixes, assumption corrections, etc to get the transition actually working
Conditional alerts

Cleaned up message sending to use more common code and be more consistent
Merge pull request #51 from medic/conditional-alerts

Conditional alerts

Issue: #52