Update state_history when state changes. Issue: kujua-lite #453
Made whitespace consistent
Refactored and created tests for schedule/due_tasks
Update state_history when state changes in due_tasks. Issue: kujua-lite #453
Update state_history when state changes in accept_patient_reports. Issue: kujua-lite #453
Update state_history when state changes in twilio_message. Issue: kujua-lite #453