Import Issue references. Add reference_text model field to Issue, plus
migrations. Handle missing document classifications.

Final piece of #17.