Raise 404 in page view if page is not an exact match. Closes #1090.
Add unique constraint to site perm model. Closes #1089.