Uniqueness constraints for student training

* Add uniqueness constraints for `StudentTrainingWorkflow` and `StudentTrainingWorkflowItem`
* Gracefully handle `IntegrityError`s
* Move test constants into a shared module.

@stephensanchez