Adds constraints to distribution_references table

- Removes duplicates
- Adds unique index
- Sets created_at and updated_at to 13th November 2013, for records where these are null
- Sets constraint on created_at, and updated_at to not accept nulls