Move rights to repository

This moves the rights field from individual records to the repository.