Unpublishing fixes

Data migration to fix a circular redirect, and validations to prevent this from happening again, also adds the URI validator.

https://www.pivotaltracker.com/story/show/55489170
https://www.pivotaltracker.com/story/show/52623681